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

HeaderText Missing

Thread ID:

Created:

Updated:

Platform:

Replies:

9995 Jan 20,2004 01:00 PM UTC Jan 20,2004 06:17 PM UTC WinForms 4
loading
Tags: GridControl
Charles Carlin
Asked On January 20, 2004 01:00 PM UTC

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 01:48 PM UTC

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 01:48 PM UTC

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 05:24 PM UTC

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 06:17 PM UTC

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.

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

;