The OnClick event is firing when I use keyboard, mouse wheel or a dbnavigator to move to another record in the dataset. Is this normal behavior? and is there an option to turn that off.
The OnClick event does fire as expected when I click on the grid.
Thanks,
Elias
We investigated this and we've seen that this bug actually originates from the base class in VCL TStringGrid.
We implemented a workaround for this erratic behavior and this will be included in the next update.
This is happening again in VCL UI Pack v 13.5.3. The OnClick event is firing when I scroll the DBAdvGrid with the mouse wheel. It works correctly when I use the arrow keys to move to another row. also clicking on the grid works fine. I have only tested this with a C++Builder project.
Thanks,
Elias
Some users argue that when through the mouse the selected row changes, the OnClick should be triggered. So, we implemented it this way. If this is causing a problem for you, best we can do is add a property to control this behavior.