I have a WebHierarchicalDataGrid with a BoundCheckBoxField create dynamically on the server. This grid also has a row edit template. How do I make the BoundCheckBoxField read only so a user may only check the column in the row edit template?
I figure it out:
Grid.GridView.Behaviors.CreateBehavior<
>();
Grid.GridView.Behaviors.EditingCore.Behaviors.CreateBehavior<
Grid.GridView.Behaviors.EditingCore.Behaviors.CellEditing.ColumnSettings.Add(
});
So how do I do this on the server and add it to the boundcheckboxfield?
var
boundCheckBoxColumn = new BoundCheckBoxField(true) { Key = dataFieldName, DataFieldName = dataFieldName, DataType = "System.Boolean" };
Hi ratkinson,
If you add a CellEditingColumnSetting for the boundcheckbox and set ReadOnly="false", it will not be editable directly on the grid.
regards,David Young