ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / TableView Class / CanToggleRowSelection Property
Example

In This Topic
    CanToggleRowSelection Property (TableView)
    In This Topic
    Determines if the table view can toggle the selection of the active row.
    Syntax
    Public ReadOnly Property CanToggleRowSelection As Boolean
    public bool CanToggleRowSelection {get;}
    Example
    Toggle, Switch, Clear Selection
    {
      // 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();
    }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.1 or higher.
    See Also