NewRow
NewRow
Returns the row the cursor will move to if current validate returns TRUE
Read-only Runtime-only Integer property
Applies to: Grid
Introduced in KCML version 5.02
This property will return the row the cursor will move to if a Validate() event is accepted on the assumption that the event is triggered by the cursor moving to another cell in the grid. The column for the new cell can be obtained from the NewCol property.
For grids with the AutoEdit property enabled the EditRowNotify() event will be triggered when the cursor is about to move between rows. The NewRow property can be inspected in this event handler to get the intended row. If the event handler returns FALSE movement can be blocked. The NewRow value can be used to lock and refresh the corresponding database row.
The property is only valid within a Validate() or EditRowNotify() event.