ArcGIS Pro 3.2 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 bool CanToggleRowSelection {get;}
    Public ReadOnly Property CanToggleRowSelection As Boolean
    Example
    Toggle, Switch, Clear Selection
    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();
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.1 or higher.
    See Also