TCustomDBGrid.GetEditMask function
GetEditMask gets the EditMask for the Field at the specified Row
and Column.Declaration
function GetEditMask(aCol: LongInt; aRow: LongInt): string; overrideArguments
aCol | Column in the grid. |
aRow | Row in the grid. |
Function result
Edit mask for the specified cell.
Description
GetEditMask is an overridden
String function used to
get the EditMask for the TField that reads and writes data for specified Row
and Column.
The linked dataset for the grid control must be active to access the Field definition at the specified column number. GetEditMask calls the GetFieldFromGridColumn method to get the TField instance with the EditMask for the column.
The return value can contain an empty string ('') is the dataset is not active, or a Field cannot be located for the specified column, or the EditMask has not been assigned in the Field definition.
GetEditMask signals the OnFieldEditMask event handler when it has been assigned for the control. Use OnFieldEditMask to return a user-specified value for the EditMask.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
