EditGrid

[method icon] EditGrid(iStartRow, iStartCol)

Allows the user to modify the contents of the entire grid

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

Applies to: Grid

Introduced in KCML version 5.02


>EditGrid

EditGrid

This method is used to allow the user to modify all cells within an entire Grid control as opposed to individual cells or rows which is the case with the EditCell() and EditRow() methods. With EditGrid() in force the user is allowed to Tab from the end of a row onto the beginning of new row and Shift Tab at the beginning of a row to the end of the previous row. The mouse can also be used to move to any other cell in the grid. Cells where editing is allowed 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 be called from within a LeftClick() or RightClick() event handler.

Example:

   ..EditGrid(..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.

If the user clicks on a control outside of the grid while EditGrid() is in force then the EndEdit() event handler is called, if it exists.

Note: 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.