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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Column Header wrapping and disappearing

Thread ID:





15815 Jun 28,2004 02:36 PM UTC Jun 28,2004 03:04 PM UTC WinForms 1
Tags: GridControl
Todd Armstrong
Asked On June 28, 2004 02:36 PM UTC

I have a data bound grid that shows the column header wrapped and truncated during runtime but NOT during design time. I have tried setting the AutoSize to true for the column to both true and false and it makes no difference. I have also tried the following, which would be a large enough size to handle the text without wrapping: this.edfGridDataBoundGrid.AllowResizeToFit = false; this.edfGridDataBoundGrid.Model.ColWidths[2] = 100; Anybody have any other ideas? See attached. Thx, Todd Grid_593.zip

Administrator [Syncfusion]
Replied On June 28, 2004 03:04 PM UTC

In your picture is the Year column from your DataSource (meaning you hid the row header column)? If so, then the Rating System column is action grid.Model.ColWidths[3] and not ColWiddth[2]. The code you had with explicitly setting the ColWidth should have worked (with the [2] swapped for a [3]) provided 100 is wid enough. You might try 200 just to see if you can get it to show a difference. Another things to try might be this.edfGridDataBoundGrid.AllowResizeToFit = false; this.edfGridDataBoundGrid.Model.ColWidths.ResizeToFit(GridRangeInfo.Row(0), GridResizeToFitOptions.IncludeHeaders); If this code does not work, is there any way the grid can be reset after this code has been hit in FormLoad (or whereever you have it).


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

This page will automatically be redirected to the 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

Live Chat Icon For mobile
Live Chat Icon