CanSaveRow - cCJGridDataSource
Returns True if the datasource object supports saving rows
Type: Function
Return Data Type: Boolean
Syntax
Function CanSaveRow Returns Boolean
Call Example
Get CanSaveRow to BooleanVariable
Description
Before a grid will attempt to save a row, it checks to see if saving rows is supported. It does this by sending the message CanSaveRow to itself. The CanSaveRow message in the grid class sends the message CanSaveRow to its datasource. This allows both the grid and the grid's datasource to determine if a row can be saved.
cCJGrid / cCJGridDataSource
This always returns True.
cDbCJGrid / cDbCJGridDataSource
This returns True if the datasource's DataDictionary property Read_Only_State is False.
Normally, the ability to save rows is managed at the grid level with CanSaveRow and pbReadOnly.
You will never send this message and you would only augment it if you were creating your own datasource class. Even then, you are not likely to use it.
Return Value
True if the datasource supports saving rows.