Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
185
How to enable checkbox column
posted

 

 Hi I have used the following code to add a column to my ultrawebgrid however all the checkboxes show up as grayed out on my grid. Can someone please direct me how to make these checkboxes be able to be selected. I also use another method to customize all my grids but I dont think that could have disabled this option.  I modify datagrid.DisplayLayout.selectTyperowDefault  to selectType.single If anyone could help me out with this Id really appreciate it

Protected Sub dgPatients_InitializeLayout(ByVal sender As System.Object, ByVal e As Infragistics.WebUI.UltraWebGrid.LayoutEventArgs) Handles dgPatients.InitializeLayout

If Not Page.IsPostBack Then

Dim col As New UltraGridColumn()

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

Parents Reply Children