Link to home
Start Free TrialLog in
Avatar of alanjbrown
alanjbrown

asked on

MouseToCell in a dbGrid

I was wondering if there is any equivalent of the TStringGrid.MouseToCell procedure for a TdbGrid. Specifically, a procedure that inputs the X and Y coordinates from an onMouseMove event and returns the Recordno and Fieldno (Row and Column would do just as well...)

Thanks in advance
Avatar of sas13
sas13
Flag of Russian Federation image

see MouseCoord() method
Avatar of alanjbrown
alanjbrown

ASKER

That's perfect, thanks.Out of furhter interest, is there an equivalent for StringGrid.CellRect?
ASKER CERTIFIED SOLUTION
Avatar of sas13
sas13
Flag of Russian Federation image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you, sas13, for your rapid and useful response.