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

Hidden Columns

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.

1 Reply

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

Loader.
Live Chat Icon For mobile
Up arrow icon