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.
Syncfusion Feedback

Hidden column reappears

Thread ID:

Created:

Updated:

Platform:

Replies:

17177 Aug 3,2004 07:39 AM UTC Aug 3,2004 08:19 AM UTC Windows Forms 2
loading
Tags: GridControl
Naveed Ahmed Siddiqui
Asked On August 3, 2004 07:39 AM UTC

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

Administrator [Syncfusion]
Replied On 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;
}

Naveed Ahmed Siddiqui
Replied On 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;
>}
>

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.

Warning Icon 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.Close Icon

;