EditRow

[method icon] EditRow(iStartRow, iStartCol)

Allows the user to modify the contents of the specified row

iStartRow Integer Row to start from
iStartCol Integer column to start from

Applies to: Grid


>EditRow

EditRow

This method is used to allow a row in a grid control to be edited. The cell must first have the LeftAction or RightAction and LeftSelect or RightSelect properties set accordingly to allow the user to click on the cell. Ideally this method should then be called from within a LeftClick() or RightClick() event handler. Once the user exits the row being edited the EndEdit() event handler is called, if it exists.

Example:

   ..EditRow(..CursorRow, ..CursorCol)

The Validate property is used to determine what type of validation is performed as the user moves from one cell to the next.

This method must not be applied to grids which have AutoEdit enabled. You may find that AutoEdit provides a simpler model for editing.

See also

Grid methods, properties and events.