[RESOLVED] Mouse move in a flexgrid: get row & col
In a flexgrid, how do I retrieve the row and column numbers of the cell the mouse is on (i.e. hovering)?
Re: Mouse move in a flexgrid: get row & col
In your mousemove event, capture grid.mouserow and grid.mousecol
Re: Mouse move in a flexgrid: get row & col
Quote:
Originally Posted by
SamOscarBrown
In your mousemove event, capture grid.mouserow and grid.mousecol
Here is an example
Code:
Private Sub MSFlexGrid1_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
Me.Caption = MSFlexGrid1.Row & ", " & MSFlexGrid1.Col
End Sub
Re: Mouse move in a flexgrid: get row & col
Quote:
Originally Posted by
SamOscarBrown
In your mousemove event, capture grid.mouserow and grid.mousecol
I had forgotten about mouserow and mousecol properties altogether.
Thank you.