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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to use custom scroll bar for WinForms GridGroupingControl?

Platform: WinForms |
Control: GridGroupingControl
Tags: scrollbar

Customize the scrollbar

To add a custom scrollbar, you need to set the GridScrollBarMode as shared. In order to adjust the size of thumb you need to use MetroThumbSize of scrollersFrame.


//Form Load
//to apply custom scrollbar
this.gridGroupingControl1.TableControl.HScrollBehavior = GridScrollbarMode.Shared;
this.scrollersFrame1.AttachedTo = this.gridGroupingControl1.TableControl;
this.scrollersFrame1.VisualStyle = ScrollBarCustomDrawStyles.Metro;
//to adjust the thumb size of scrollbar
this.scrollersFrame1.MetroThumbSize = new Size(5, this.scrollersFrame1.MetroThumbSize.Height);



'to apply custom scrollbar
Me.gridGroupingControl1.TableControl.HScrollBehavior = GridScrollbarMode.Shared
Me.scrollersFrame1.AttachedTo = Me.gridGroupingControl1.TableControl
Me.scrollersFrame1.VisualStyle = ScrollBarCustomDrawStyles.Metro
'to adjust the thumb size of scrollbar
Me.scrollersFrame1.MetroThumbSize = New Size(5, Me.scrollersFrame1.MetroThumbSize.Height)



Before customize the thumb size After customize the thumb size
     Before customizing the thumb size                           After customizing the thumb size.

  1. If you are using ScrollerFrame, then you need to use AttachedTo() and the maximum width of thumb is limited to the up to the size of scroller bounds.
  2. Instead of using ScrollerFrame, if you want to use any other scrollbars, you can refer this article.



C#: CustomScrollBar

VB: CustomScrollBar


2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

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

Live Chat Icon For mobile