Protected Sub dgPatients_InitializeLayout(ByVal sender As System.Object, ByVal e As Infragistics.WebUI.UltraWebGrid.LayoutEventArgs) Handles dgPatients.InitializeLayout
If Not Page.IsPostBack Then
col.Key = "CheckBox"
col.HeaderText = "Select Products"
e.Layout.Bands(0).Columns.Insert(0, col)
col.Type = ColumnType.CheckBox
col.IsEditable()
col.Width = Unit.Pixel(50)
End If
End Sub
I think you are missing the AllowUpdate="Yes" property. If you try that, it should work. I tried on mine by setting AllowUpdate="No" and the checkbox is disabled and when I set it to "Yes" it's enable again.
HS2
Hi I tried Allowupadate set to Yes.
It shows enabled. But When I click on check box, I am not able to see the check mark on the box. same thing for all rows.
Any idea.
Thanks so much HS2, That worked! :) I wasted so much time yest on this. For anyone else reading this you can enable the webgrid to be updatable if you have a similar problem by changing the AllowUpdate to yes
datagrid.DisplayLayout.AllowUpdateDefault = AllowUpdate.Yes
Now I just have to figure out how to store the checked boxes since they lose their value when you go to another page on the grid.