OnNewRow - cWebGrid

Triggered when the user inserts or appends a new row to the grid

Type: Event

Parameters: None

Syntax
Procedure OnNewRow 

Description

The OnNewRow event is triggered when the user inserts a new row using Shift-F10 or navigates to the last row. Implement this event to manipulate the initial values of the new row. This can be achieved by updating the psValue properties of the grid columns.

Note: This event is not called when pbOfflineEditing is set to True.

Sample

Procedure OnNewRow
    WebSet psValue of oPriceColumn to 100
End_Procedure

In the above example, each time a new row is added to the grid the value of the price column (oPriceColumn) is set to 100.

See Also

InsertNewRow | AppendNewRow