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
1380
ultragrids valuelist
posted

Hi,

In ultragrid cant bind valuelist.Code is below.Please help.Grid not show  this valuelist.

public void besGrid1_InitializeLayout(object sender, InitializeLayoutEventArgs e)
{

ValueList vl2 = new ValueList();
vl2.ValueListItems.Add(1, ">");
vl2.ValueListItems.Add(2, "<");
vl2.ValueListItems.Add(3, "=");


e.Layout.Bands[0].Columns[1].Style = ColumnStyle.DropDownList;
e.Layout.Bands[0].Columns[1].CellActivation = Activation.AllowEdit;
e.Layout.Bands[0].Columns[1].ValueList = vl2;
}
}

Parents Reply Children