SQLQuery.AfterScroll & BeforeScroll are the only events that I know off that are raised when you scroll up or down a dbgrid.
Thank you taaz,
The SQLQuery1 AfterScroll event does indeed work as asked.
I did have to also
repeat the same Code (procedure) to the DBGrid OnCelClick, otherwise, I don't quite get the equivalent action of
a needed OnCellEnter new event that I solicit be ADDED to Lazarus capabilities, and also an OnCellExit event.
It is not exactly what I wanted, but is close enough. The best would be with the not available event OnCellChange.
Also, the AfterScroll surely depends on the SQLQuery being active, and I have not yet tested to see if that matters or not. And, there may be cases with timing issues, as to when the AfterScroll event takes place and when DBGrid events act, if one is using also DBGrid Events to trigger additional required code.
BUT, please,
Lazarus Team: Would you please consider adding these events (obvious needs for the request)
to the DBGrid:
1. OnCellEnter
2. OnCellExitActually, I am surprised that these events are not available to the DBGrid, as usually it'd be one of the most useful events when jumping to a new cell, or after leaving it (where speciall checks and calculations can be required).
Thanks everyone!
P.S. Maybe the same request would apply to the other grids available?