I use the Infragistics grid, and I have a tough time using the drop-down list as a value selector for one of my columns.
I tried reading the documentation, but the Infragistics documentation is not so good. I also looked at the discussion with no luck.
What am I doing so far:
col.Type = ColumnType.DropDownList;
col.DataType = "System.String";
col.ValueList = myValueList;
where myValueList:
ValueList myValueList = new ValueList();
myValueList.Prompt = "My text prompt";
myValueList.DisplayStyle = ValueListDisplayStyle.DisplayText;
foreach(MyObjectType item in MyObjectTypeCollection)
{
myValueList.ValueItems.Add(item.ID, item.Text);
}
When I look at the page, I expect to see a dropdown in the cells for this column, but my columns are empty.
source
share