Thank you very much, I tried what you suggested and it works fine, I'm going to compare it with my application, but now I'm facing another problem:
when I select a row in the table and navigate to another page to edit the record, when I return to the table after doing a commit, the vertical scrollbar resets to the top position, although the current row remains the same and the DisplayRow property is set to "selected". I reproduced the same scenario in JDeveloper 220.127.116.11.0 and it works fine, but in JDeveloper 18.104.22.168.0 it doesn't work.
When I scroll down the table, I can see the same row selected, but I can't see it in the visible range of the table initially. While the table is loading I can see the selected row in the visible range but after it finishes loading the scroll resets to the top position and I can't see the selected row anymore.