EditCell
EditCell(iStartRow, iStartCol)
Allows the user to modify the contents of the specified cell
iStartRow | Integer | Row to start from |
---|---|---|
iStartCol | Integer | column to start from |
Applies to: Grid
Int1 | Row position of cell to be edited (CursorRow) |
---|---|
Int2 | Column position of cell to be edited (CursorCol) |
This method is used to allow an individual Grid cell to be edited. The cell must first have the LeftAction or RightAction and LeftSelect or RightSelect properties 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. One the user exits the cell being edited the EndEdit() event handler is called, if it exists.
Example:
..EditCell(..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.
Note that the EditRow() method is used to allow entire rows to be edited, and EditGrid is used to allow entire grids to be edited.
This method must not be applied to grids which have AutoEdit enabled.