I have a column in my webgrid that displays either 'P' or 'V'.
I have added this code (refer below) within the initialize layout event handler, but still it displays 'P' or 'V'. Is there something else I need to handle? I'm binding my webgrid against a List<> collection.
ValueList value = new ValueList();
value.ValueListItems.Add("P", "Pedestrian");
value.ValueListItems.Add("V", "Vehicle");
UltraWebGrid1.DisplayLayout.Bands[0].Columns[1].ValueList = value;
Hi,
Check this link: http://community.infragistics.com/forums/p/25594/94620.aspx#94620
In that approach I just populate a DataTable from my available values for value list. Later I bind that table with value list of the column and set DisplayMember and ValueMember properties.
I know this is way is different then you current approach but still you could try this.
Let me know if this helps you.