pbAutoSave - cCJGrid
Determines if a changed row should be saved automatically when changing rows
Type: Property
Access: Read/Write
Data Type: Boolean
Parameters: None
Syntax
Property Boolean pbAutoSave
| Access Type | Syntax |
|---|---|
| Read Access: | Get pbAutoSave to BooleanVariable |
| Write Access: | Set pbAutoSave to BooleanVariable/Value |
Description
Anytime you change rows in a grid and changes were made, changes in the SelectedRow must be committed. This means that the changes must either be saved or cleared. If pbAutoSave is True, the row change committal process will be a save. If this property is false, the process will be a clear.
If the committal is a save, a full save will be attempted including validations and verifications. If the save fails, the row change is halted. If the committal is a clear a full clear will be attempted including a verification. If the clear fails the, the row change is halted.
Upon exiting the grid, a changed row may or may not be committed, depending on the value returned by ShouldCommitOnObjectExit. If a committal occurs, pbAutoSave is used to determine if the committal is a save or a clear.