To restrict editing in specific columns, set the Locked property to True. This property can be set either in the designer or in code.
Complete the following steps to lock the Last column:
Add the following code to the Form_Load event to lock the Last column:
C# |
Copy Code
|
---|---|
this.c1TrueDBGrid1.Splits[0].DisplayColumns["Last"].Locked = true; |