Public Function GetObjectIdAsync( _ ByVal rowIndex As Integer _ ) As Task(Of Long)
public Task<long> GetObjectIdAsync( int rowIndex )
Parameters
- rowIndex
- The index of the row.
Return Value
The object id of the row or -1 if the row is not found.
Public Function GetObjectIdAsync( _ ByVal rowIndex As Integer _ ) As Task(Of Long)
public Task<long> GetObjectIdAsync( int rowIndex )
{
// get the active row index
int rowIndex = tableView.ActiveRowIndex;
// increase
int newIndex = rowIndex + 10;
// get the objectID
long newOID = tableView.GetObjectIdAsync(newIndex).Result;
// 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 = tableView.GetRowIndexAsync(OID, true);
}
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)