Skip to content

DeleteSelectedRow - cCJGridDataSource

Deletes the SelectedRow from the external data source (DataDictionary object)

Type: Function
Return Data Type: Boolean

Syntax

Function DeleteSelectedRow Returns Boolean

Call Example

Get DeleteSelectedRow to BooleanVariable

Description

DeleteSelectedRow attempts to delete the SelectedRow from the external data source. It returns True if the delete failed.

cCJGrid / cCJGridDataSource

With simple grids there is no external data source, so this does nothing and returns False.

cDbCJGrid / cDbCJGridDataSource

This attempts to delete the row by sending Request_Delete to the DataDictionary object. This does not remove the row from the datasource, which must be done separately by the grid. This message is sent to the cCJGrid object's DeleteSelectedRow method and is part of the grid row delete process.

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

False if the delete was a success, True if the delete was canceled.