Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1290
ValueList
posted

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;