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.
Unfortunately, activation email could not send to your email. Please try again.

How to show an indication for hidden rows and hidden columns?

Thread ID:

Created:

Updated:

Platform:

Replies:

18140 Aug 24,2004 01:59 PM Aug 24,2004 02:14 PM Windows Forms 1
loading
Tags: GridControl
Dongxian Li
Asked On August 24, 2004 01:59 PM

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 02:14 PM

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);
	}
}

CONFIRMATION

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.

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.

;