ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / TableView Class / GetRowIndex Method
The object id of the row.
Only search the active pages of the table for the object id.

In This Topic
    GetRowIndex Method (TableView)
    In This Topic
    Gets the index of a row in the current ViewMode of the table. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public int GetRowIndex( 
       long objectId,
       bool activePageSearch
    )
    Public Function GetRowIndex( _
       ByVal objectId As Long, _
       ByVal activePageSearch As Boolean _
    ) As Integer

    Parameters

    objectId
    The object id of the row.
    activePageSearch
    Only search the active pages of the table for the object id.

    Return Value

    The index of the row or -1 if the object id is not found.
    Exceptions
    ExceptionDescription
    This method or property must be called within the lambda passed to QueuedTask.Run.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.1 or higher.
    See Also