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.
Hi I have one ultragrid which contains checkbox column, I used the following code to disable this column, but it did not work. The checkbox column was grayed but still can check or uncheck the checkbox in the column.
ultraGrid1.DisplayLayout.Bands[0].Columns["checkboxcolumnName"].CellActivation = Activation.Disabled;
I want to gray this column, also could not check or uncheck the checkbox in the column. Could you please help on this? Thanks a lot.