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.

GridControl Column Resizing

Thread ID:

Created:

Updated:

Platform:

Replies:

56672 Feb 19,2007 05:55 AM Feb 19,2007 10:44 AM Windows Forms 1
loading
Tags: GridControl
Edward Khoze
Asked On February 19, 2007 05:55 AM

Hi

When a user double-clicks between the columns in a grid to resize them, what event should I catch to overwrite the default behaviour?

Thanks in advance

Ed

Administrator [Syncfusion]
Replied On February 19, 2007 10:44 AM

Hi Ed,

You can subscribe the ResizingColumns event of the grid and detect the double between the column header by using the e.Action property. Here is a code snippet.

this.grid.ResizingColumns +=new GridResizingColumnsEventHandler(grid_ResizingColumns);

private void grid_ResizingColumns(object sender, GridResizingColumnsEventArgs e)
{
if( e.Reason == GridResizeCellsReason.DoubleClick )
{
Console.WriteLine("double click is occured");
}
}

Best regards,
Haneef

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.

;