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.

HeaderText Missing

Thread ID:

Created:

Updated:

Platform:

Replies:

9995 Jan 20,2004 08:00 AM Jan 20,2004 01:17 PM Windows Forms 4
loading
Tags: GridControl
Charles Carlin
Asked On January 20, 2004 08:00 AM

I have a databound grid that has 6 columns and the very last column is not displaying the headertext. All others display fine, plus the data in the column displays fine. When I check the value of the cell it is set correctly, any ideas why this would happen or how to force it to display? // // gbcData // this.gbcData.HeaderText = "Raw Data"; this.gbcData.MappingName = "data"; this.gbcData.StyleInfo.CellType = "Static";

Administrator [Syncfusion]
Replied On January 20, 2004 08:48 AM

Where are you setting this headertext? Is it in the same place as the other headers are set? Are you adjusting the grid''s Bound or Location or something that may make teh grid think its cleintarea is smaller? If you drag the grid off and on the screen, does the headertext show up then? If so, this is likely a refresh problem. Maybe explicitly calling grid.Refresh or Grid.RefreshRange will make things show up.

Administrator [Syncfusion]
Replied On January 20, 2004 08:48 AM

Where are you setting this headertext? Is it in the same place as the other headers are set? Are you adjusting the grid''s Bound or Location or something that may make teh grid think its cleintarea is smaller? If you drag the grid off and on the screen, does the headertext show up then? If so, this is likely a refresh problem. Maybe explicitly calling grid.Refresh or Grid.RefreshRange will make things show up.

Administrator [Syncfusion]
Replied On January 20, 2004 12:24 PM

The header is centered which when combined with auto size seems to dissappear. I would guess this is related to the data in the column being so large. Is there anyway to tell the header column to be left justified and not centered?

Administrator [Syncfusion]
Replied On January 20, 2004 01:17 PM

Try setting: this.gridDataBoundGrid1.BaseStylesMap["Column Header"].StyleInfo.HorizontalAlignment = GridHorizontalAlignment.Left;

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.

;