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.

GGC auto resize header

Thread ID:





79902 Mar 3,2009 12:31 PM Mar 4,2009 10:03 AM Windows Forms 1
Tags: GridControl
Irakli Machabeli
Asked On March 3, 2009 12:31 PM

How can one automatically resize header of GGC to maximum of data and header width

I tried this code but do not see any effect

grid.TableModel.ColWidths.ResizeToFit(GridRangeInfo.Row(0), GridResizeToFitOptions.IncludeHeaders);

Lingaraj S [Syncfusion]
Replied On March 4, 2009 10:03 AM

Hi Irakli,

Thanks for your interest in Syncfusion products.

I am unable to see this issue in our end.please try by using WrapText and Trimming property and still face this issue please provide us a minimal sample so that we can analyse this issue in detail.

Please refer the code below.
e.Style.WrapText = true;
e.Style.Trimming = StringTrimming.None;

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.

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.