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

In This Topic
    SetViewMode Method (TableView)
    In This Topic
    Sets the view mode of the table view.
    Syntax
    public Task SetViewMode( 
       TableViewMode viewMode
    )
    Public Function SetViewMode( _
       ByVal viewMode As TableViewMode _
    ) As Task

    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