I have created a StringGrid and I want to Highlight the Row and Column of a cell when the mouse cursor moves over the cell, and when it is selected (change to. Apr 12, 2015 How detect the row and col of a stringgrid at mouse position Free Pascal Website Downloads Wiki Bugtracker Mailing List Lazarus Website Downloads (Laz+FPC) Packages (OPM) FAQ Wiki Bugtracker IRC channel Developer Blog Follow us on.
Hum sorry, I see that your problem is when you have a scroll barYou have to use this:property LeftCol: Longint;And my mistake again, Col is already used by the StringGrid class, so it's not good for a variable name with the 'with. Do'now tested and working as askedprocedure TForm1.StringGridMouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer); Var C:Integer; begin With (Sender As TStringGrid) do try for C:=0 to FixedCols-1 do if X.