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 enable the vertical scroll bar for GridListControl celltype in WinForms GridGroupingControl?

Platform: WinForms |
Control: GridGroupingControl
Tags: scrollbar

Enable vertical scroll bar

By default, when the GridListControl cell type is enabled in the GridGroupingControl and Metro theme is applied to the grid, the scrollbars will not present for the GridListControl. To enable the scrollbars, use the GridOfficeScrollBars property and set the Office2007ScrollBars property of GridDropDownGridListControlCellRenderer class to true.

C#

//To enable scrollbars for GridListControl
GridDropDownGridListControlCellRenderer renderer = (GridDropDownGridListControlCellRenderer)this.gridGroupingControl1.TableControl.CellRenderers["GridListControl"];
renderer.ListControlPart.Grid.Office2007ScrollBars = true;
renderer.ListControlPart.Grid.GridOfficeScrollBars = Syncfusion.Windows.Forms.OfficeScrollBars.Metro;

 

VB

'To enable scrollbars for GridListControl
Dim renderer As GridDropDownGridListControlCellRenderer = CType(Me.gridGroupingControl1.TableControl.CellRenderers("GridListControl"), GridDropDownGridListControlCellRenderer)
renderer.ListControlPart.Grid.Office2007ScrollBars = True
renderer.ListControlPart.Grid.GridOfficeScrollBars = Syncfusion.Windows.Forms.OfficeScrollBars.Metro

 

Scroll bar for GridListControl

 

Samples:

CS: Scrollbars for GridListControl_CS

VB: Scrollbars for GridListControl_VB

Reference link: https://help.syncfusion.com/windowsforms/classic/gridgroupingcontrol/scrolling

2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
ADD COMMENT
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