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
220
ValueList
posted

Hi

I am using the version 12.1. I have this kind of construction. Seems that the value list

does not have any affect.

When I try to change/add values for the column just what ever values are allowed.

regards

Jukka Aakula

const string sDilutionValueList = @"DilutionValueList";

if (!e.Layout.ValueLists.Exists(sDilutionValueList))
{
ValueList svl = e.Layout.ValueLists.Add(sDilutionValueList);
svl.ValueListItems.Add(1, "1");
svl.ValueListItems.Add(2, "2");
svl.ValueListItems.Add(3, "3");
}
grdStandards.DisplayLayout.Bands[0].Columns[4].ValueList = e.Layout.ValueLists[sDilutionValueList];