I'm using C#.net windows appln. in VS 2005.
I've a list
I need to bind this list to 3 combo boxes.
How should I use the list in hand to display in the comboboxes?
Thanks in advance.
I've a list
Code:
List<string> DataList = new List<string>;
datalist.add("one");
datalist.add("two");
datalist.add("three");
Code:
private void FillMethod()
{
comboBox1.BindingContext = new BindingContext();
comboBox2.BindingContext = new BindingContext();
comboBox3.BindingContext = new BindingContext();
List<string> list = Filldata();
comboBox1.DataSource = list;
comboBox2.DataSource = list;
comboBox3.DataSource = list;
My requirement is:
comboBox1 should have data: "One" & "Two"
ComboxBox2 should have data: "Two" & "Three"
comboxBox3 should have data: "One"
}
Thanks in advance.
Comment