ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / TableView Class / BringIntoView Method
Row index to scroll to.
The field index to scroll to. -1 will scroll the rows and keep the current field.
Example

In This Topic
    BringIntoView Method (TableView)
    In This Topic
    Scroll the table grid to the desired row and field and set the active cell.
    Syntax
    public Task BringIntoView( 
       int rowIndex,
       int fieldIndex
    )
    Public Function BringIntoView( _
       ByVal rowIndex As Integer, _
       Optional ByVal fieldIndex As Integer _
    ) As Task

    Parameters

    rowIndex
    Row index to scroll to.
    fieldIndex
    The field index to scroll to. -1 will scroll the rows and keep the current field.

    Return Value

    A Task of the operation.
    Remarks
    To go to the first row, pass a rowIndex of 0. To go to the last row in the table, pass a rowIndex of int.MaxValue)
    Example
    Change the active row
    //Get the active table view.
    var tableView = TableView.Active;
    if (tableView == null)
      return;
    
    // get the active rowindex
    int rowIndex = tableView.ActiveRowIndex;
    
    // move to a different row
    var newIndex = 10 + rowIndex;
    await tableView.BringIntoView(newIndex);
    
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.1 or higher.
    See Also