
(*
 Delphi Object and Component Reference
# {bmc bm9.BMP} OnGetEditMask example
This example specifies an edit mask in a string grid to limit the cells that contain telephone numbers, as indicated by a label cell in the first row:
*) 
void __fastcall TForm1::StringGrid1GetEditMask(TObject *Sender, long ACol, long ARow, AnsiString &Value)
{
  if (StringGrid1->Cells[ACol, 0] == "Phone Number")
    Value = "!\(999\)000-0000;1";
} 
