ArcGIS Pro 3.7 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 Function BringIntoView( _
       ByVal rowIndex As Integer, _
       Optional ByVal fieldIndex As Integer _
    ) As Task
    public Task BringIntoView( 
       int rowIndex,
       int fieldIndex
    )

    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 row index
      int rowIndex = tableView.ActiveRowIndex;
    
      // move to a different row
      var newIndex = 10 + rowIndex;
      tableView.BringIntoView(newIndex);
    }
    Requirements

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

    ArcGIS Pro version: 3.1 or higher.
    See Also