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.

GridDataBoundGrid Header Font

Thread ID:

Created:

Updated:

Platform:

Replies:

23122 Jan 5,2005 06:49 AM Jan 5,2005 10:58 AM Windows Forms 5
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On January 5, 2005 06:49 AM

Pardon me if it sounds stupid .. but how do i change the column header font in GridDataBoundGrid. Tried changing Font property in GridDataBoundGrid, GridBoundColumn, BaseStyleMap, TableStyle but still no luck... Regards Yogi

Administrator [Syncfusion]
Replied On January 5, 2005 06:55 AM

Some Additional information.. I am using SyncFusion 3.1 and this grid is binded with a typed dataset.

Administrator [Syncfusion]
Replied On January 5, 2005 07:17 AM

Using the BaseStyleMap should work (unless something is resetting it later say in PrepareViewStyleInfo or Model.QueryCellInfo). this.gridDataBoundGrid1.BaseStylesMap["Column Header"].StyleInfo.Font.Italic = true;

Administrator [Syncfusion]
Replied On January 5, 2005 08:18 AM

So its a bug.. if i change the font using the property window.. the changes don''t get applied ( i don''t see code generated in initializecomponentmethod )...but it works if i explicitly add the following code in initializecomponent() this.gridDataBoundGrid1.BaseStylesMap["Column Header"].StyleInfo.Font.Facename = "Tahoma"; this.gridDataBoundGrid1.BaseStylesMap["Column Header"].StyleInfo.Font.Size = 12; Regards Yogi

Administrator [Syncfusion]
Replied On January 5, 2005 10:11 AM

Using 3010, if I open up the DataBoundSortByDisplayMember sample, and make the changes you mentioned to the BaseStylesMap in the designer, I see the font change on the design surface, and it stays changed at runtime as well. If you try to change the font in this DataBoundSortByDisplayMember sample, does it change for you. If so, there must be something particular to your project that is triggerring this problem. Can you upload a sample project that fails so we can try to spot the problem so it can be addressed?

Administrator [Syncfusion]
Replied On January 5, 2005 10:58 AM

Pretty wierd.. it seems soemthing to do with my configuration.. i opened up the DataBoundSortByDisplayMember sample and changed the font as explained by you.. no luck... Regards Yogesh S

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.

;