Bind two Grid Grouping Control
I have 2 grid grouping control. My requiremnt is that when I scroll my RHS grid vertically, my LHS Grid should also scroll accordingly.
Is there any way to achieve this.
Thanks
Is there any way to achieve this.
Thanks
SIGN IN To post a reply.
3 Replies
SR
SubhaSheela R
Syncfusion Team
September 1, 2008 04:45 AM UTC
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=524
Please let me know if this helps.
Regards,
Subhasheela R
AT
Ankit Thakkar
September 2, 2008 10:10 AM UTC
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=524
Please let me know if this helps.
Regards,
Subhasheela R
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=524
Please let me know if this helps.
Regards,
Subhasheela R
SR
SubhaSheela R
Syncfusion Team
September 11, 2008 05:20 AM UTC
Hi Ankit,
Thanks for your interest in Syncfusion products.
Your forum 76261 has been updated. Please refer to that forum thread and let me know if you have any queries.
Regards,
Subhasheela R
SIGN IN To post a reply.
- 3 Replies
- 2 Participants
-
AT Ankit Thakkar
- Aug 29, 2008 06:56 PM UTC
- Sep 11, 2008 05:20 AM UTC