Syncfusion - GridControl - Sync Scrolling of the Two Gridcontrols

Syncfusion - GridControl  -  Sync Scrolling of the Two Gridcontrols 
Note: - With this when first is scrolling horizontally below grid will also screen as per the column visible







Note : Example above has two GridControl one user interactive and other is Disable to show
           summary totals for grid above. To avoid Label driver Totals.
 
Example show sync between to grid on Horizontal scroll of grid1
 
Code : Form Load Event
 
GridControl2.HScrollBehavior = GridScrollbarMode.Shared
GridControl2.UseSharedScrollBars = True
GridControl2.HScrollBar.InnerScrollBar =GridControl1.HScrollBar.InnerScrollBar
 
‘This Required in case when Vertical Scroll need to be synced
GridControl2.VScrollBehavior = GridScrollbarMode.Shared
GridControl2.VScrollBar.InnerScrollBar =GridControl1.VScrollBar.InnerScrollBar
 
Note:- for above example Vertical Scrollbasr Sync in not required





Comments

Popular posts from this blog

Shared / Static Class in vb.net/C#

Xamarin Forms : PopUp Page with RG.Plugins.Popup

Text was truncated or one or more characters had no match in the target code page.". (SQL Server Import and Export Wizard)