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; } }
I tried this and it always works fine for me so I attached my sample to this post for you. Please review it and feel free to let me know if I misunderstood you or if you have any other questions.
Hello Boris
If there is not any mistake in code May be I did mistake in design time?On Ultragrid control.I created data schema .set datamember bind[0] and datasource default datasource1.any idea?
Thanks in advance.