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 column reappears

When i hide a column of the grid and double click on the header of the column left to it, the hidden column reappears. By double click i mean the behavior through which the column is resized to some default width i.e. Double click when the cursor change to resize one. Im using EssentialGrid 1.6.x and .Net 1.1

2 Replies

AD Administrator Syncfusion Team August 3, 2004 04:14 AM

This is by design. If you do not want this behavior, then you can handle the ResizingCols event and cancel it if it is a doubleclick.
private void gridControl1_ResizingColumns(object sender, GridResizingColumnsEventArgs e)
{
	if(e.Reason == GridResizeCellsReason.DoubleClick)
		e.Cancel = true;
}


NA Naveed Ahmed Siddiqui August 3, 2004 04:19 AM

thnx for a quick and good solution >This is by design. > >If you do not want this behavior, then you can handle the ResizingCols event and cancel it if it is a doubleclick. > >
>private void gridControl1_ResizingColumns(object sender, GridResizingColumnsEventArgs e)
>{
>	if(e.Reason == GridResizeCellsReason.DoubleClick)
>		e.Cancel = true;
>}
>

Loader.
Live Chat Icon For mobile
Up arrow icon