ok, so this is then a bit finnicky to handle. when there are filter applied to the grid, I would have to apply the same filters to the datasource, to get the correct rowNumber.
TBH that could be handled better by the grid and the docs to the grid.
Anyway, thanks for the support!