ComboBox

  • Thread starter Thread starter Jim Heavey
  • Start date Start date
J

Jim Heavey

Hello, If I am binding a ComboBox to a dataTable, I can set the
DisplayMember and the ValueMember property. If I am loading the data
manually, how do I load a value which is equivilant to the "ValueMember"?

Thanks in advance for your assistance!!!!!!
 
Jim said:
Hello, If I am binding a ComboBox to a dataTable, I can set the
DisplayMember and the ValueMember property. If I am loading the data
manually, how do I load a value which is equivilant to the "ValueMember"?

Simply add whatever object you wish and be sure to set the DisplayMember
property. Once your load is complete, the object yielded by SelectedItem
property can be cast to the original type and you can make use of all its
methods and properties.

--
There are 10 kinds of people. Those who understand binary and those who
don't.

http://code.acadx.com
(Pull the pin to reply)
 
Back
Top