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