Hi. in ultradatagrid , I can set up column type by .FromKey("undo").Type = Infragistics.WebUI.UltraWebGrid.ColumnType.CheckBox
How to coding in Wdbdatagrid.
Please do not tell me to see some sample. Just show me sample coding.
Thanks,
Dennis
I have the same issue. I have been trying to upgrade from a UltraWebGrid to the WebDataGrid (in 11.1). I need to add a column to the WebDataGrid (in ASP.NET code in VB) on the equivalent event to e 'InitiaizeLayout' (if I can find one!).
I want to have a checkbox control which is NOT BOUND the the dataset of the grid.
Protected Sub uwgBasket_InitializeLayout(ByVal sender As Object, e As Infragistics.Web.UI.GridControls.BandEventArgs) Handles uwgBasket.InitializeBand
Dim loColumn As Infragistics.Web.UI.GridControls.BoundDataField ' UltraGridColumn 'CellClickActionDefault = CellClickAction.Edit
loColumn = New Infragistics.Web.UI.GridControls.BoundDataField ' UltraGridColumn loColumn.Key = "Remove" loColumn.Type = ColumnType.CheckBox loColumn.AllowUpdate = AllowUpdate.Yes uwgBasket.Columns.Add(loColumn)
Hello Dennis,
If AutoGenerateColumns is set to true and if you have a Bit column in your database the column is rendered by default as checkbox.
For more refer to the attached sample.
If this is not the same as your scenario please modify your sample to be the same as your scenario and send it back to us so we can provide you with further assistance.
Yes,
I don't want add a new column. All columns are generated automatically. How we can transfer the columns to checkbox, just like Ultradatagrid did?
Thank you for your update.
Did you check the links I gave you?
I am attaching a working sample of how to create a BoundCheckBoxField column dynamically.
Please let me know if you need anything else.
.FindItemByKey("undo").Column.Type = Infragistics.Web.UI.GridControls.BoundCheckBoxField()
Is it possible?