I have 2 grids on a window. When I scroll a grid I want to programmatically scroll the second one. Both grids have the same number of columns/rows.... Basically how to keep them showing the same row/column?
MMMuthalagu M Syncfusion Team May 12, 2015 03:02 AM UTC
Thank you for using Syncfusion Products.
We have analysed your query and you can achieve your requirement with the help of VisualContainer in SfDataGrid. We have prepared the sample also and you can download the sample from the following location,
In this sample, we have used the same number of row and column count in two grids. With the help of VisualContainer inboth the grids, we have accessed the internal ScrollViewer and scroll the grids based on their offset value in ScrollChanged event of ScrollViewer. Please find the code snippet below,
//ScrollChanged event of ScrollViewer in Datagrid1