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

Column Header wrapping and disappearing

Thread ID:

Created:

Updated:

Platform:

Replies:

15815 Jun 28,2004 02:36 PM UTC Jun 28,2004 03:04 PM UTC Windows Forms 1
loading
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).

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

;