Hi Dan,
Where is this coming from? Why is the selection has an offset?
>>>>>>>>>>>>>>>
The above code returns the RowIndex of the selected rows, with relative to the grid.
The grid will display each elements llike Caption, ColumnHeaders, FilterBar, AddNew row, ect., in different rows. Since these rows are displaying above the records, the rowindex of the records will get some offset and this offset will vary based on the number of elements displayed above the records.
You can find this offset using the gridGroupingControl1.TableControl.GetMinimumTopRowIndex() method. It returns the rowindex of the first record displayed in the grid.
If you are looking for the index of these selected rows in the binded datasource, please refer to the following KnowledgeBase article
How do I get the position of a row in the datasource from CurrentCell's rowIndex?Best Regards,
Saravanan.