I started working on a Xceed Grid for .Net windows forms. I am unable to avoid the horizontal scrollbar jump from right to left when i tried to sort the grid by clicking on a column. I observed the code clears the rows and once again binds the datasource. Is there any way to avoid the scroll bar jumps in this case?
Imported from legacy forums. Posted by Pavan (had 1613 views)
I’ve run into this issue as well. You can reproduce it with the “Edit Modes” example application that’s provided with the WPF grid. i.e. Xceed Samples\Xceed DataGrid for WPF Professional Edition v4.1\CSharp\EditModes\Xceed.Wpf.DataGrid.Samples.EditModes.csproj
The steps to reproduce are:-
Launch the application
DO NOT click anywhere in the grid!
Resize the window so that the right hand side of the application is aligned with the right hand side of the “Artist” column
Scroll the grid as far right as possible
Click on the “Rating” heading
This causes the grid to scroll all the way to the left.
If you click anywhere in the grid in step 2 then the grid doesn’t scroll when you sort it.
I’d be most grateful if you could fix this for us. We’re using Xceed DataGrid for WPF v4.1.
Imported from legacy forums. Posted by Richard (had 313 views)