In case you want to select all track notes, Ctrl+A to select everything and then Ctrl+Right Click on the notes you want to deselect.
If you want to select a large number of notes but not the entire track, decrease the horizontal and vertical zoom for a wider view, then select the desired range and proceed as in the previous case.
Well, this, as in many other cases, is just a workaround.
And now that Sonar is stopped, there are no other solutions in sight.
Let us help each other.