2

Does anyone know how to retrieve the column and row when selecting a cell in a FireMonkey stringgrid (in other words, when clicking on a cell, we want to know which column/row is being selected)...?

We are using Delphi XE4.

Thanks in advance.

RRUZ
  • 134,889
  • 20
  • 356
  • 483
Alex
  • 543
  • 1
  • 9
  • 21

1 Answers1

4

To get the index of the current Row, use the Selected property.
To get the index of the current Column, use the ColumnIndex property.

Peter
  • 2,977
  • 1
  • 17
  • 29