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

Can you resize a row in a grid automatically

Thread ID:





74817 Jun 30,2008 08:35 AM UTC Jun 8,2009 05:29 PM UTC WinForms 3
Tags: GridControl
Adrian Robson
Asked On June 30, 2008 08:35 AM UTC


Is it possible to resize a row in a grid automatically, so that if text cannot fit into a column then it will wrap around onto the next line and the height of that row will be adjusted so that you can see the text?


SubhaSheela R [Syncfusion]
Replied On June 30, 2008 11:18 AM UTC

Hi Adrian,

Thanks for your interest in Syncfusion products.

Below is the code snippet to adjust the RowHeight of the grid.

this.gridDataBoundGrid1.Model.ColStyles[1].AutoSize = true;
this.gridDataBoundGrid1.Model.ColStyles[1].WrapText = true;

You can refer the below forum thread also:


Please let me know if it helps.

Subhasheela R

Steven Mohnkern
Replied On June 3, 2009 09:58 PM UTC

Can you do this same thing with GridGroupingControl?

Lingaraj S [Syncfusion]
Replied On June 8, 2009 05:29 PM UTC

Hi Adrian,

Thank you for your update.

The GridGroupingControl the ResizeToFit in RowHeights can be done through a CustomEngine which calculates each rows. Please try using CustomEngine of resizable rows to achieve the ResizeToFit heights behavior in GridGroupingControl. If you want WrapText behaviour in GridGrouping control, then please try using WrapText and AllowEnter property in QuereyCellStyleInfo event and RezizeToFit method in TableControlCurrentCellChanged event to achieve this behavior in GridGroupingControl.

Please refer the sample in below link:

This sample demonstrate the Wrap Text behavior in GridGroupingControl.

Let me know if you have any queries.

Lingaraj S.


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