I have a simple combobox that I don't want to bind to a data table. I just want to add a few items to it.
combobox_status.Items.Add("Active")
combobox_status.Items.Add("Inactive")
I want the user to see the descriptions above, but when selected, I want to be able to use a value instead of the description, such as A and I.
I know how to do this when bound to a table, but can I assign a display member and value member when not bound to a data table?
combobox_status.Items.Add("Active")
combobox_status.Items.Add("Inactive")
I want the user to see the descriptions above, but when selected, I want to be able to use a value instead of the description, such as A and I.
I know how to do this when bound to a table, but can I assign a display member and value member when not bound to a data table?