Quantcast
Channel: C# combobox set custom DiplayMember - Stack Overflow
Browsing index pages (2 articles)
↧

C# combobox set custom DiplayMember

I'm binding combobox to a DataTable (table columns are "NAME", "SURNAME" and "ID"). Currently I have set ValueMember to "ID", and DisplayMember to "SURNAME". I wish to change DisplayMember - and...

View Article


Answer by Lucy82 for C# combobox set custom DiplayMember

Looks like there is one simple, one line mehod to do that, no property of any kind required. Just a simple add of calculated column to a Datatable in a place where you bind Combobox, and then you just...

View Article

Browsing index pages (2 articles)


Latest Images