pbReadOnly - cCJGrid
Determines if a grid is read-only which means that rows cannot be edited, saved, added or deleted
Type: Property
Access: Read/Write
Data Type: Boolean
Parameters: None
Syntax
Property Boolean pbReadOnly
| Access Type | Syntax |
|---|---|
| Read Access: | Get pbReadOnly to BooleanVariable |
| Write Access: | Set pbReadOnly to BooleanVariable/Value |
Description
The pbReadOnly property determines if a row can be changed.
When False, which is the default, you are allowed to edit and save rows. When False, other properties, pbAllowDeleteRow, pbAllowInsertRow, pbAllowAppendRow, pbAutoAppend and pbAllowEdit allow you to control what kind of alterations are allowed.
When True, rows cannot be edited, saved, deleted, inserted or appended - pbReadOnly takes precedence over these other properties. When True, you may wish to set pbFocusSubItems to false so that individual column selection is disabled.
The functions CanAddRow, CanSaveRow, CanDeleteRow and CanEditColumn can also be augmented to further customize grid editing.