var tv = TableView.Active; if (tv == null) return; // toggle the active rows selection if (tv.CanToggleRowSelection) tv.ToggleRowSelection(); // switch the selection if (tv.CanSwitchSelection) tv.SwitchSelection(); // clear the selection if (tv.CanClearSelection) tv.ClearSelection();
Target Platforms: Windows 11, Windows 10