{
// toggle the active rows selection
if (tableView.CanToggleRowSelection)
{
tableView.ToggleRowSelection();
}
// switch the selection
if (tableView.CanSwitchSelection)
{
tableView.SwitchSelection();
}
// clear the selection
if (tableView.CanClearSelection)
{
tableView.ClearSelection();
}
}
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)