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
close icon

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

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

1 Reply

AD Administrator Syncfusion Team 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);

Live Chat Icon For mobile
Up arrow icon