Using a TDBAdvGrid with HotmailRowSelect=true. I'm also filling the grid with a dataset and PageMode=false.
I have retested this here with a default TDBAdvGrid on the form and the code:
As the checkbox for a row indicates row selection, it is normal that when the active row changes, the checkbox for the active row gets selected.
We saw the issue with OnCheckBoxChange and we've fixed this. The next update will address this.
It could mean that I have some setting that is somehow causing the problem. I've uploaded a test sample that shows I cannot toggle a checkbox more than twice. I'm using Delphi 10.2.3.
We checked this and it was grid.MouseActions.TouchScroll = true in combination with HotmailRowSelect that was causing this. We have fixed this, the next update will address this.
Awesome, thanks.
New issue. Using the example logic from ADOSelection demo, I pull data from the dataset based on which checkbox is checked, i.e. selected.
I added indexes to my dataset and added code to the CanSort event, setting DoSort to false and selecting the index needed to sort the dataset which seems to resolve my issue.
Worked perfectly, thanks!
There is still an issue with HotmailRowSelect after updating to TBAdvGrid 2.4.5.1
The OnCheckBoxChange event is triggered before the checkbox state & associated row selection state is updated. Please use the OnCheckBoxClick event if you want the event after all is internally fully processed.
We have seen the second issue with a checkbox not immediately responding when it is clicked in a fixed cell and have applied an improvement for this. The next update will have this improvement.
Thanks, that works better (forgot about that event). Looking forward to your other fix to resolve the issue where clicking on the checkbox on a row other than the first row for the first time when the grid is not in focus yet (or so it seems).