in VB 6
I would use the following SQL statement
select ID, Desc from X
get the results and populate a combo box.
combo.itemdata would = the ID value.
Now in .Net itemdata has been dropped.
My work around this was to add a collection for each combobox on the form then
populate that combo with the resuls from the DB, and population the combo box with the respected collection.
Is there a better method or have I completely missed the toilet seat?




Reply With Quote