ActiveRowIndex Property (TableView)
Gets the zero based index of the active row in the table. Can be -1 if there is no active row.
public int ActiveRowIndex {get;}
Public ReadOnly Property ActiveRowIndex As Integer
Get the active row
//Get the active table view.
var tableView = TableView.Active;
if (tableView == null)
return;
// get the active rowindex
int rowIndex = tableView.ActiveRowIndex;
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);
Translate between rowIndex and objectID
//Get the active table view.
var tableView = TableView.Active;
if (tableView == null)
return;
// get the active rowindex
int rowIndex = tableView.ActiveRowIndex;
// increase
int newIndex = rowIndex + 10;
// get the objectID
long newOID = await tableView.GetObjectIdAsync(newIndex);
// get the rowIndex for a specific objectID
// 2nd parameter indicates if the search only occurs for the pages loaded
// if pass false, then in the worst case, a full table scan will occur to
// find the objectID.
long OID = 100;
var idx = await tableView.GetRowIndexAsync(OID, true);
Target Platforms: Windows 11, Windows 10
ArcGIS Pro version: 3.1 or higher.