We are facing an issue where ScrollToRowIndex is not working properly on macOS when initially the datagrid is loaded. We have prepared a test project where initially the datagrid will scroll to a position when loaded. But this is working on Windows, not on macOS. In our test project, there is a button which will scroll to random positions. This is working on both windows and macOS.
The behavior we are trying to achieve is, initially a row of the datagrid will be selected from the viewmodel. While loading the datagrid, it will scroll to the selected row. Only when the selected row item will be updated from the viewmodel, we will scroll to that position. Selecting a row from the table will not scroll to the position. We can achieve this in windows. But it is not working in macOS. In macOS, the scroll position is not updating for the initial selected row. We have prepared the test project by reproducing the initial state.
Could you please share any work around for this?