adwaitjoshi
Active member
- Joined
- Dec 29, 2005
- Messages
- 38
- Programming Experience
- 1-3
While binding data for a listbox or combobox, we use the DisplayValue and DisplayMember method. Instead of specifying column names in the datatable, can I specify column indices?
For example is it possible to say
ListBox1.DisplayMember = 0
ListBox1.ValueMember = 1
instead of
ListBox1.DisplayMember = "Description"
ListBox1.ValueMember = "Code"
For example is it possible to say
ListBox1.DisplayMember = 0
ListBox1.ValueMember = 1
instead of
ListBox1.DisplayMember = "Description"
ListBox1.ValueMember = "Code"