To disable a row, use any of the following ways:
- (v20.2 and newer) Use BaseColumn.IsReadOnlyBinding or BaseColumn.IsEnabledBinding as shown in this example: Read-Only and Enabled State Binding.
- Handle the ShowingEditor event and set the e.Cancel property to True in the event handler.
- Use the CellTemplate property to bind the editor's IsReadOnly property to a data source field.
This example demonstrates the difference between the last two options. In the left GridControl, users cannot open editors of the disabled cells. In the right GridControl, users can open read-only cell editors to copy their values to the clipboard only.