Wednesday, February 16, 2005

Assigning keyvalues pair to ComboBox in C#

it took a lot of time to find some solution to assign more than one values to combobox,since comboObject.Items.Add("MyValue") only allows to add a single value in comboBox which can be fetched by using comboObject.text property.

Hans de Bruijn has provided very clean and nice solution to tackle this problem for both combobox and List values.

Happy Coding