We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Bind two Grid Grouping Control

Thread ID:

Created:

Updated:

Platform:

Replies:

76288 Aug 29,2008 06:56 PM UTC Sep 11,2008 05:20 AM UTC WinForms 3
loading
Tags: Grouping
Ankit Thakkar
Asked On August 29, 2008 06:56 PM UTC

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


SubhaSheela R [Syncfusion]
Replied On 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


Ankit Thakkar
Replied On 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




SubhaSheela R [Syncfusion]
Replied On 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


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;