Hello
I have a webgrid bound to a typed-dataset. One of the columns is of type Byte. I want to use a ValueList to display a text instead of a number, with the values 1="Stand-By", 2="In Progress", 3="Closed". The webgrid is readonly, so I want that the values be replaced automatically.
How can I accomplish that?
Thanks a lot.
Hello,
The best way is to AllowUpdate on the grid first and set the ValueList property. After setting this you can turn off the AllowUpdate property at Column level. Here is an example:
protected void UltraWebGrid1_InitializeLayout(object sender, LayoutEventArgs e)
{
ValueList list = new ValueList ();
this.UltraWebGrid1.DisplayLayout.AllowUpdateDefault = AllowUpdate .Yes;
this .UltraWebGrid1.DisplayLayout.Bands[0].Columns[0].ValueList = list;
this.UltraWebGrid1.DisplayLayout.Bands[0].Columns[0].AllowUpdate = AllowUpdate .No;
}
Please let me know if you have any questions or concerns.
Thanks
Sarita
You need to set ValueList property of that column where you want to display value list.
I think this link could help you.
http://community.infragistics.com/forums/p/25594/94620.aspx#94620
Check it and let me know if that helps you.