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 show an indication for hidden rows and hidden columns?

Thread ID:





18140 Aug 24,2004 05:59 PM UTC Aug 24,2004 06:14 PM UTC WinForms 1
Tags: GridControl
Dongxian Li
Asked On August 24, 2004 05:59 PM UTC

I am using a GridControl in Virtual mode to show some huge test data. The grid control provides menus for user to hide and unhide rows and columns. The problem is: Once the rows or columns are hidden, it is hard for user to find where are those hidden stuff. We would like to provide some kind of indication around the hidden rows or columns so that user can double click it to unhide it. I have not figured out how to do it. Please help. Thanks dongxian

Administrator [Syncfusion]
Replied On August 24, 2004 06:14 PM UTC

You can try handling the CellDrawn event and draw something on the hidden border. Here is a try at drawing a red line.
private void grid_CellDrawn(object sender, GridDrawCellEventArgs e)
	if(e.RowIndex == 0 && e.ColIndex > 0 && e.ColIndex < this.grid.Model.ColCount
		&& this.grid.Model.Cols.Hidden[e.ColIndex + 1])
		Point pt1 = new Point(e.Bounds.Right - 1, e.Bounds.Top);
		Point pt2 = new Point(e.Bounds.Right - 1, e.Bounds.Bottom);
		e.Graphics.DrawLine(Pens.Red, pt1, pt2);


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

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

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
Live Chat Icon