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

Resize columns'' widths to fit the grid window?

Thread ID:

Created:

Updated:

Platform:

Replies:

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

Hi,

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.

http://www.syncfusion.com/uploads/redirect.aspx?file=ObservableCollectionDemo_b58c9fa0.zip&team=development

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

CONFIRMATION

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.

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

;