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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Autofit by doubleclicking right side of header row . .

Thread ID:





38063 Dec 5,2005 04:35 PM UTC Dec 5,2005 05:59 PM UTC WinForms 1
Tags: GridControl
Adam K.
Asked On December 5, 2005 04:35 PM UTC

In excel if i double click on the right side of the header row in a column, it autofits for the entire column. with syncfusion it seems to only autofit the header row and ignore the rest of the rows in that column. Is there a way to mimic the excel behavior. thks, ak

Administrator [Syncfusion]
Replied On December 5, 2005 05:59 PM UTC

The default behavior is to restrict the resizing to the visible grid for performance reasons. If you want to remove this restrictions, you can subscribe to teh ResizingColumsn event and do the resizing yourself. If you want the doubleclick to behave differently, you can handle this event.
private void grid_ResizingColumns(object sender, GridResizingColumnsEventArgs e)
		GridRangeInfo range = e.Columns; 
		e.Cancel = true;


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

or the page will be automatically redirected to 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