{
// toggle the active rows selection
if (tableView.CanToggleRowHighlight)
tableView.ToggleRowHighlight();
// switch highlighted rows
if (tableView.CanSwitchHighlight)
tableView.SwitchHighlight();
// clear the highlights
if (tableView.CanClearHighlighted)
tableView.ClearHighlighted();
}
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)