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 08:14 AM UTC

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 08:19 AM UTC

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.
Up arrow icon