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.

Resize columns'' widths to fit the grid window?

Thread ID:

Created:

Updated:

Platform:

Replies:

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

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 05:29 AM

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.

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.

;