@sokol92, I tried using the select method to unselect a few days ago, and it didn’t unselect. I tried it again after seeing your reply, and it still didn’t work. I didn’t bother looking at your file. I assume it does what you say it does. After thinking it over, I realized that after the user clicks on a row, my procedure runs before LO applies the highlighting, which means that the highlighting is applied at a time when it overrides anything the select method does in my procedure.
I moved the procedure to a different event, and the select method works fine. I put both the user selected row and the row I want to highlight into the selection array, and the select method toggles the user selected row off and my row on, all in one procedure call. Very cool.
Unfortunately, moving the procedure creates new problems. It was running in a particular event for a reason, and it doesn’t do the job if it runs in another event. I’ve also discovered that implementing complicated business rules and data validation rules in a grid leads to forms loading data erratically and/or frequent crashes. Offloading the processing onto stand-alone controls works more reliably.
Thanks for your comments. You were right about the select method. But this was an experiment that didn’t work out.