[Solved] Problem getting the text from a clicked TStringGrid cell. lazarus / 31-LCL ---------------------------------------------------------------------- SteveD · 2024-07-07 20:01 Hi, When I click the cell of a TStringGrid I need to receive the text from the cell or, at least, the col & row values of the clicked cell.  I have tried all relevant events but they have problems.  The events that provide aCol & aRow values cause the mouse click to remain active after the cell has been clicked so that when the mouse is moved over the StringGrid, after a click, it selects cells again without clicking.  The OnClick event is the only one which doesn't do this, but it doesn't provide the aCol & aRow values. Thanks in advance. Steve. ---------------------------------------------------------------------- wp · 2024-07-07 20:23 In the OnClick event the selected cell is already at the new location. You can query it by reading the StringGrid.Row and StringGrid.Col properties. The text in the selected cell is StringGrid.Cells[StringGrid.Col, StringGrid.Row] ---------------------------------------------------------------------- SteveD · 2024-07-07 20:51 That's great!  Many thanks WP