How to enable vertical scroll bar in WinForms GridGroupingControl?
Enable vertical scroll bar
By default,
when the WinForms GridListControl cell type is enabled in the WinForms
GridGroupingControl and the Metro theme is applied to the grid, the
scrollbars will not be 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
Scrollbar for GridListControl as shown below
Samples:
CS: Scrollbars for GridListControl_CS
VB: Scrollbars for GridListControl_VB
Reference Link: Scrolling
Conclusion
I hope you enjoyed learning about how to enable the vertical scroll bar for GridListControl cell type in GridGroupingControl.
You can refer to our WinForms GridGroupingControl feature tour page to learn about its other groundbreaking feature representations. You can also explore our WinForms GridGroupingControl documentation to understand how to create and manipulate data.
For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.
If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!