Hello Everone,
We are new to Infragistics controls so I apologize if this is a silly question. I am using an Ultrawingrid to display several fields in a grid. The first column is a checkbox and no matter what I do I cannot seem to make this column editable. I have tried setting the cell activation event to allow edit and manually tried to change it at run time like this:
With mygrid.DisplayLayout
.Bands(0).Columns("Selected").Style = Infragistics.Win.UltraWinGrid.ColumnStyle.CheckBox
.Override.AllowUpdate = Infragistics.Win.DefaultableBoolean.True
.Bands(0).Override.AllowUpdate = Infragistics.Win.DefaultableBoolean.True
.Bands(0).Columns("Selected").Header.CheckBoxVisibility = Infragistics.Win.UltraWinGrid.HeaderCheckBoxVisibility.WhenUsingCheckEditor
.Bands(0).Columns("Selected").CellActivation = Infragistics.Win.UltraWinGrid.Activation.AllowEdit
End With
Thanks for your help.
All grid cells are editable by default. So if you cannot edit a column in the grid, either you are setting a property on the grid to disable it, or else your data source does not allow editing of that field.
Check your code and make sure you aren't overwriting the settings you have shown here in some other event or that you are not loading a layout into the grid.
If that's not the case, then it must be your data source.
It was our data. Turns out we were using a case statement in our stored procedure which was making the data column read only in our data table.
Thanks for the responses everyone!