Hi,
I have RadGrid with one GridDropDownColumn, I want to populate this coulmn by a IList<Item> where item is
I have RadGrid with one GridDropDownColumn, I want to populate this coulmn by a IList<Item> where item is
public
class Item
{
public string ItemData { get; set; }
public string ItemDescription { get; set; }
}
On myGridLoad()
I am populating IList<iTem>
DataGridComboBoxColumn
dataGridComboBoxColumn = new DataGridComboBoxColumn();
IList<Item> DropDownList = new List<Item>();
for (int idx = 0; idx < 10; ++idx)
{
Item item = new Item();
item.ItemData = dropdownList[idx];
item.ItemDescription = dropdownList[++idx];
DropDownList.Add(item);
}
dataGridComboBoxColumn.ListValueField =
"ItemData";
dataGridComboBoxColumn.ListTextField =
"ItemDescription";
//how to assign this IList<item> to the ComboBoxColumn
//dataGridComboBoxColumn.DataSourceID = DropDownList;
}
Please let me know how to handle this.
thanks
virendra kumar