Hi Michael,
We can set a column to read only mode using the AllowEditing property of the Grid Columns. But if the column is primaryKey column, then the column won’t be disabled even if AllowEditing property is set as false.
Instead you can use the IsIdentity property of the grid columns. Please refer to the below online api reference link.
The column which is specified as IsIdentity will be in readonly mode both while editing and adding a record. Also, auto incremented value is assigned to that IsIdentity column.
Regards,
Ragavee U S.