Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxSpreadSheetTableView.ShowEditByKey(Char) Method

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

#Declaration

Delphi
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