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.

Hidden Columns

Thread ID:

Created:

Updated:

Platform:

Replies:

8011 Oct 16,2003 01:10 PM Oct 16,2003 01:33 PM Windows Forms 1
loading
Tags: GridControl
Charles Carlin
Asked On October 16, 2003 01:10 PM

I have a grid control where the last column is hidden using the following command: gridControl1.Model.HideCols[9] = true; However if I double click on the last column header divider the hidden column is displayed.

Administrator [Syncfusion]
Replied On October 16, 2003 01:33 PM

This behavior is by design. If you want to prevent it, then you can handle the ColsHiding event, and cancel it if the column is being shown.
private void gridControl1_ColsHiding(object sender, GridRowColHidingEventArgs e)
{
	if(e.Values[0] == false)
		e.Cancel = true;
}

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.

;