ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / TableView Class / SetViewMode Method
The view mode of the table.
Example Version

    SetViewMode Method (TableView)
    Sets the view mode of the table view.
    Syntax
    public Task SetViewMode( 
       TableViewMode viewMode
    )

    Parameters

    viewMode
    The view mode of the table.

    Return Value

    That task executing the change.
    Example
    Set Table ViewingMode
    //Get the active table view.
    var tableView = TableView.Active;
    if (tableView == null)
      return;
    
    // change to "selected record" mode
    tableView.SetViewMode(TableViewMode.eSelectedRecords);
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.1 or higher.
    See Also