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

GridControl Column Resizing

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

1 Reply

AD Administrator Syncfusion Team February 19, 2007 03:44 PM UTC

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

Loader.
Live Chat Icon For mobile
Up arrow icon