C# Entity Framework 6 two way binding with listbox -


how can bind entity listbox allows 2 way operation?

i know can provide datasource, doesn't work (two ways mean).

i able achieve wanted text box using listbox.databindings.add("text", entity, "textfield").

i've tried binding selectedvalue, selecteditem, selecteditems , items. none of work. in cases exception

targetinvocationexception 

with inner exception text of object not match target type.

the object date/time object, doesn't seem problem when bind using datasource.

any appreciated.

datasource source of items of listbox. when choose element listbox, selected element selecteditem. set datasource (usually target of foreign key) , bind selecteditem (the foreign key).


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -