
(*
 Delphi Object and Component Reference
# {bmc bm9.BMP} Col example
This example uses a string grid with a label above it on a form. When the user clicks a cell in the grid, the location of the cursor is displayed in the label caption. 
*) 
void __fastcall TForm1::DrawGrid1Click(TObject *Sender)
{
  char rBuf[10];
  char cBuf[10];
  itoa(DrawGrid1->Col + 1, cBuf, 10);
  itoa(DrawGrid1->Row + 1, rBuf, 10);
  Label1->Caption = AnsiString("The cursor is in column ") + String(cBuf) + String(", row ") + String(rBuf);
} 
