How to Get a Record Index Given the Row Index
3 Jan 20201 minute to read
This can be done using the following code snippet.
//Calculates Record index.
Table table = e.TableCellIdentity.Table;
Element el = table.DisplayElements[RowIndex];
Record r = el.ParentRecord;
int RecordIndex= table.UnsortedRecords.IndexOf(r);
'Calculates Record index.
Dim table As Table = e.TableCellIdentity.Table
Dim el As Element = table.DisplayElements(RowIndex)
Dim r As Record = el.ParentRecord
Dim RecordIndex As Integer = table.UnsortedRecords.IndexOf(r)