RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomDBGrid.GetEditMask Method

Returns the input mask associated with the field for the selected cell.

Pascal
function GetEditMask(ACol: Longint; ARow: Longint): string; override;
C++
virtual __fastcall AnsiString GetEditMask(Longint ACol, Longint ARow);

The inplace editor calls GetEditMask to obtain any input mask associated with the field binding of the indicated cell. GetEditMask returns the EditMask property of the field component from the Columns array. 

The ACol and ARow parameters indicate the index of the row and column of the cell in the grid. The ACol parameter is not the same as the index of the column in the Columns array if the Options property includes dgIndicator. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!