We have a requirement that needs to refresh XamDataGrid to load new data, then scroll to the previously selected row. User can see grid flickering during the refresh. Is there a way to delay display the grid until the grid scrolled to the correct position? In winform grid, there are BeginUpdate and EndUpdate method. Are there similar methods for XamDataGrid?
Thank you for contacting Infragistics!
What method are you using to go to the selected row?
I used scrollInfo.SetVerticalOffset(_previousScrollbarVerticalOffset);by looking at other post, I found out scrollInfo.ScrollOwner.ScrollToVerticalOffset(_previousScrollbarVerticalOffset); fixed the issue.
After more thorough testing, I found that scrollInfo.ScrollOwner.ScrollToVerticalOffset doesn't work all the time. Invoking SetVerticalOffset with a dispatcher works every time, but it caused grid flicker.