comReg.DisplayMember = "Item 1"; comReg.ValueMember = "1"; comReg.DisplayMember = "Item 2"; comReg.ValueMember = "2"; comPer.Items.Clear(); switch (comReg.SelectedItem.ToString()) { case "Item 1": comPer.Items.AddRange(new string[]{"1", "2", "3", "4" }); break; case "Item 2": comPer.Items.AddRange(new string[]{"1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"}); break;
MSDN wrote:A String specifying the name of an object property that is contained in the collection specified by the DataSource property. The default is an empty string ("").
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)