Hi,
The same code doesn't seem to work for 2 Grid Grouping Control.
Here is the code which I m using:
gridGroupingControl1.TableControl.HScrollBehavior = GridScrollbarMode.Shared;
gridGroupingControl1.TableControl.VScrollBehavior = GridScrollbarMode.Shared;
gridGroupingControl1.TableControl.UseSharedScrollBars = true;
gridGroupingControl1.TableControl.HScrollPixel = true;
gridGroupingControl2.TableControl.HScrollPixel = true;
gridGroupingControl1.TableControl.VScrollPixel = true;
gridGroupingControl2.TableControl.VScrollPixel = true;
gridGroupingControl1.TableControl.HScrollBar.InnerScrollBar = gridGroupingControl2.TableControl.HScrollBar.InnerScrollBar;
gridGroupingControl1.TableControl.VScrollBar.InnerScrollBar = gridGroupingControl2.TableControl.VScrollBar.InnerScrollBar;
Can you let me know if I have missed out anything ?
Thanks.
>
Hi Ankit,
Thanks for your interest in Syncfusion products.
We can make two grid controls to share the scrollbars, so that if you scroll one of the Grid Control, the other one also getting scrolled. This is achieved by setting the HScrollBehavior and VScrollBehavior properties of the Grid Control. Also you have to set InnerScrollBar property for both the scroll bars. You can scroll by pixels by setting ScrollPixel property.
You can refer the below KB article for more details.
http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=524Please let me know if this helps.
Regards,
Subhasheela R