How to hide a range of rows and columns in the WinForms GridControl?
Hide a range of rows and columns
You can hide a range of rows and columns in the WinForms GridControl by using the HideRows.SetRange() and HideCols.SetRange() methods.
C#
//Hide the range of rows this.gridControl1.HideRows.SetRange(2, 5, true); //Hide the range of columns this.gridControl1.HideCols.SetRange(3, 4, true);
VB
'Hide the range of rows Me.gridControl1.HideRows.SetRange(2, 5, True) 'Hide the range of columns Me.gridControl1.HideCols.SetRange(3, 4, True)
The following screenshot illustrates the output.
Figure 1: Rows and Columns hidden in the Grid
Samples:
Conclusion
I hope you enjoyed learning about how to hide a range of rows and columns in the WinForms GridControl.
You can refer to our WinForms GridControl’s feature tour page to know about its other groundbreaking feature representations and documentation. You can also explore our WinForms GridControl example to understand how to present and manipulate data.
For current customers, you can check out our WinForms 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 WinForms GridControl and other WinForms components.
If you have any queries or require clarifications, please let us know in the comments below. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!