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

Resize columns'' widths to fit the grid window?

Thread ID:





92584 Jan 23,2010 10:01 AM UTC Jan 25,2010 10:29 AM UTC WPF 1
Tags: GridControl
Hoang Cuong
Asked On January 23, 2010 10:01 AM UTC


How can I resize columns' widths to fit the grid window?

Could you support column width type like Auto, *, absolute number? That will be much more flexible.

Dhinesh Pandiyan M [Syncfusion]
Replied On January 25, 2010 10:29 AM UTC

Hi Cuong,

Thanks for using Syncfusion products.

We can set the column size for make fit into the grid in the grid_SizeChanged Event. Please download the sample from the below location.


This feature has been added in the coming release, In future we can use the code like,

grid.ColumnSizer = GridControlLengthUnitType.Auto;
grid.ColumnSizer = GridControlLengthUnitType.AutoWithLastColumnFill;
grid.ColumnSizer = GridControlLengthUnitType.SizeToCells;
grid.ColumnSizer = GridControlLengthUnitType.SizeToHeader;
grid.ColumnSizer = GridControlLengthUnitType.Star;

Let us know if you have any questions.

With Regards,
Dhinesh Pandiyan


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