Fill a pair of data (text and value) to ComboBox .NET 2.0 Windows Application
In .NET 2.0 Windows Application, It is not easy to fill a pair of data (text, value) to a ComboBox, Most of examples just introduced the Display member and value member: comboBox1.DisplayMember = “Desc”; comboBox1.ValueMember = “Code”; comboBox1.DataSource = dt; Now let us don’t use DataSource and DisplayMember way: class CmdPairClass { private string _cmdLongStr; [...]
