setUpdateMode - Row - When Last Row

I have a grid that uses setUpdateMode(“row”)

When I filter the grid and there is only one row left…or if there is only one row in a grid, it does not process the changes because it can’t jump to the next row.
Is there a function to find out if the row being displayed (not necessarily the last row because I filter by one or more columns) is the last row, and if so change the setUpdateMode to “cell”?

Anyone else have this issue?

Calling the
myGrid.rowsBuffer.length
you will get the number of visible (filtered) rows in your grid