Skip to content

IsSelectedRowNew - cCJGridDataSource

Returns True if the selected row is new

Type: Function
Return Data Type: Boolean

Syntax

Function IsSelectedRowNew Returns Boolean

Call Example

Get IsSelectedRowNew to BooleanVariable

Description

IsSelectedRowNew is called to determine if the SelectedRow is a new row. This determines how a grid will react to requests for saves, deletes and row changes. It is the datasource object's responsibility to determine if a row is new.

cCJGrid / cCJGridDataSource

When a new row is inserted or appended, it is made the SelectedRow and marked as new. When the row is saved, it is marked as old.

cDbCJGrid / cDbCJGridDataSource

The datasource uses its DataDictionary server to determine of the current DataDictionary's record is new. It does this by calling HasRecord. When a new row is inserted or appended, it is made the SelectedRow and the DataDictionary's record is cleared.

Return Value

True if the selected row is a new row, False if not.