I have a combobox with a particular value from a SQL query.
Say,
Code:
SELECT id_owner, folder_name FROM owner WHERE owner_type='PLANTS' ORDER BY folder_name
// and then
while (dr.Read())
{
cboBox.Items.Add(dr[1].ToString());
}
Well I only want the combo box to show the folder_name but once one selects from the list it then knows which id_owner to select.
That is dr([1].ToString() but not show it.
Does the combobox have a hidden index field or what?
How does the combobox keep the dr[0].ToString as well as the dr[1].ToString for use?
Thanks,
Deaf