Hi Tuong,
Thanks for using Syncfusion products.
Query 1: how to set the datasource for the MultiColumnDropDownCombo.
please refer the below code snippet for set the datasource for the MulticolumnDropdownCombo.
[CS]
public void Init1(object sender, EventArgs e)
{ MultiColumnDropDownCombo obj = sender as MultiColumnDropDownCombo;
List<MyListClass> mylist = new List<MyListClass>();
mylist.Add(new MyListClass(458792658));
mylist.Add(new MyListClass(358765892));
mylist.Add(new MyListClass(258213658));
mylist.Add(new MyListClass(331231369));
mylist.Add(new MyListClass(335454512));
mylist.Add(new MyListClass(458792658));
mylist.Add(new MyListClass(358765892));
mylist.Add(new MyListClass(258213658));
mylist.Add(new MyListClass(331231369));
mylist.Add(new MyListClass(335454512));
obj.DataSource = mylist; }
[Serializable]
public class MyListClass
{
public MyListClass(int Telephone)
{
this.Telephone = Telephone;
}
public int Telephone{ get; set; }
}}}
Query 2:how to set the selected value of the MultiColumnDropDownCombo.
please refer the below code snippet for set the datasource for the MulticolumnDropdownCombo.
[CSHTML]
MultiColumnDropDownCombo mcdd = this.GridGroupingControl1.FormEditCell.FindControl("MultiColumnDropDownCombo1") as MultiColumnDropDownCombo;
curRecord.SetValue("Telephone", mcdd.Text);
For your convenience we have prepared a sample for the above scenario and it is attached below. Please refer to it.
Regards,
Shanmugaraja K
multicolumndropdown_43b04901.zip