BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
Code Example:
<ScrollViewer> <Syncfusion:SfDataGrid x:Name="dataGrid" Height="600" AutoGenerateColumns="True" ItemsSource="{Binding Source}" /> </ScrollViewer> |
there is something wrong in my application, when I reload the datasource , the sfdatagrid ’s scrollviewer always scroll to the first row. after edit or delete data from datasource, the scrollviewer scroll to the first row . when i use datagrid control ,everything works fine , i try to disabled the sfdatagrid ’s scrollviewer , but it not work, there is any way to get this problem?
Hi Alvin
Chen,
Your requirement can be achieved by setting the true value for the CanMaintainScrollPosition property
in SfDataGrid. Please refer to the below code snippet,
<syncfusion:SfDataGrid x:Name="sfDataGrid" ItemsSource="{Binding Orders}" CanMaintainScrollPosition="True" /> |
Please let us know if you have any concerns about this.
Regards,
Vijayarasan S
If this post is helpful, please consider Accepting it as the solution so that other members can locate it more quickly.