Articles in this section
Category / Section

How to hide a range of rows and columns in the WinForms GridControl?

1 min read

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.

Rows and columns hidden in the grid

Figure 1: Rows and Columns hidden in the Grid

Samples:

C#: HideRowsColumnsInGC

VB: HideRowsColumnsInGC

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 forumsDirect-Trac, or feedback portal. We are always happy to assist you!

 

 


Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied