RestoreSelectedRow - cCJGrid
Restores the selected row back to its pre-edited state
Type: Function
Return Data Type: Boolean
Syntax
Function RestoreSelectedRow Returns Boolean
Call Example
Get RestoreSelectedRow to BooleanVariable
Description
RestoreSelectedRow restores the SelectedRow back to its pre-edited state. Before restoring the data, it calls Verify_Data_Loss, which provides you with an opportunity to create a data loss verification message. If the operation is cancelled, it returns True.
If the grid is non-data aware (cCJGrid / cCJGridDataSource), only the datasource is restored. If the grid is data-aware (cDbCJGrid / cDbCJGridDataSource), the data is restored by refinding the record in the DataDictionary.
This message may be sent during a row focus change. When a row changes, any changes must be saved or reset. If pbAutoSave is True, a row save will be attempted and RestoreSelectedRow will not be called. If pbAutoSave is False, the row must be reset and this method will be called. RestoreSelectedRow may also be called as part of a Request_ClearRow operation.
Return Value
Returns: False if the operation succeeds; True if the operation was cancelled.