Vcl.Grids.TCustomGrid.CanEditAcceptKey

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function CanEditAcceptKey(Key: Char): Boolean; dynamic;

C++

DYNAMIC bool __fastcall CanEditAcceptKey(System::WideChar Key);

Properties

Type Visibility Source Unit Parent
function protected
Vcl.Grids.pas
Vcl.Grids.hpp
Vcl.Grids TCustomGrid

Description

Indicates whether the Key parameter can be entered into the current cell.

CanEditAcceptKey provides a simple screening of keyboard input while the user is editing the contents of a cell. The CanEditAcceptKey method for TCustomGrid always returns true. Descendants of TCustomGrid override this method to screen out illegal characters.

More refined validation can be obtained by using an edit mask.

See Also