Hello,
After calling sfDataGrid.View.RefreshFilter(), the position of the scrollbar and view is moved upward by a seemingly random amount, even though the DataSource is not changing. This only occurs once after manually scrolling down. After that the scrollbar and view do not move when calling the above function.
I have tried to save and restore the scrollbar's position by doing:
var scrollVal = SfDataGrid.TableControl.ScrollRows.ScrollBar.Value;
SfDataGrid.View.RefreshFilter();
TableControl.ScrollRows.ScrollBar.Value = scrollVal;
However, the
ScrollRows.ScrollBar.Value property does not change even though I can see the ScrollBar moving. The only scrolling property I found that IS different after refreshing the filter is the SfDataGrid.TableControl.ScrollRows.ScrollLineIndex. I can restore the scroll position by saving this and restoring it after refreshing the filter but unfortunately this can cause the scroll position to jump since it is by row index and not a granular value.
I have verified that the number of records displayed is not changing.
Any help would be appreciated.