Hi all,
I have a UltrawebGrid and a programmatic built value list in it.
In the InitialLayout Event I have the following code:
e.Layout.Bands(0).Columns.FromKey("curr_kind").Type = ColumnType.DropDownListe.Layout.Bands(0).Columns.FromKey("curr_kind").ValueList.DisplayStyle = alueListDisplayStyle.DisplayText
Dim state As ValueList = UltraWebGrid1.Bands(0).Columns.FromKey("curr_kind").ValueListstate.DataSource = mycurrliststate.DisplayMember = "kind"state.ValueMember = "id"state.DisplayStyle = ValueListDisplayStyle.DisplayTextstate.DataBind()
The problem is now, that the Ultrawebgrid still shows the value, only if I click in the cell the text is displayed.
How can I manage it that the grid shows all entries as text (display member) instead of the value?
Thanks & Best regards,
Oliver
Hello Oliver ,
You should also set :
// Properties that must be set on the WebGrid in order for the ValueList to Display in the Cell
this.UltraWebGrid1.Columns.FromKey("DisplayValue").Type = ColumnType.DropDownList;
this.UltraWebGrid1.DisplayLayout.AllowUpdateDefault = AllowUpdate.Yes;
this.UltraWebGrid1.DisplayLayout.CellClickActionDefault = CellClickAction.Edit;
Please refer to the below help documentation regarding this:
Let me know if you need further assistance.