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
close icon

Double Click Functionality

When double clicking on the row header, the apparent functionality is to re-size the column to a default size. Is this correct? What is the default size, and how can I prevent this functionality?

1 Reply

AD Administrator Syncfusion Team November 23, 2003 04:54 PM UTC

This is by design. Double-click will reset the column to its default width. You can set the default with with code like grid.DefaultRowHeight = xxx. However the ResizingColumns event lets you implement whatever behavior you want. Here is the code snippet that autosizes the column.
private void grid_ResizingColumns(object sender, GridResizingColumnsEventArgs e)
		GridRangeInfo range = GridRangeInfo.Cols(1,3); 
		e.Cancel = true;
Here is a little sample.

Live Chat Icon For mobile
Up arrow icon