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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Double Click Functionality

Thread ID:





8853 Nov 23,2003 02:31 PM UTC Nov 23,2003 04:54 PM UTC WinForms 1
Tags: GridControl
Asked On November 23, 2003 02:31 PM UTC

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?

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


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon