Skip to main content

TdxSpreadSheetTableView.ShowEditByKey(Char) Method

Activates an in-place editor for the focused cell and replaces its content with a specified character.

Declaration

procedure ShowEditByKey(AKey: Char);

Parameters

Name Type
AKey Char

Remarks

The ShowEdit, ShowEditByKey, and ShowEditByMouse procedures are designed to activate an in-place cell editor programmatically.

Invoke this procedure to activate the focused cell’s in-place editor programmatically and replace its current content with the character passed as the AKey parameter. If the Spreadsheet control is not focused, calling the ShowEditByKey procedure has no effect. Otherwise, ShowEditByKey emulates a key pressed by an end-user when the cell is focused.

To close the active in-place cell editor, invoke the HideEdit procedure.

Note

You may need to move the input focus to the Spreadsheet control by calling its SetFocus method prior to invoking the ShowEditByKey procedure.

See Also