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

How do I make the font bold in the column headers of a GridDataBoundGrid?

Thread ID:





77353 Oct 28,2008 03:53 PM UTC Oct 30,2008 05:00 PM UTC WinForms 2
Tags: GridControl
Asked On October 28, 2008 03:53 PM UTC

How do I make the font bold in the column headers of a GridDataBoundGrid?


Nisha Arockiya A [Syncfusion]
Replied On October 29, 2008 11:49 AM UTC

Hi TC,

Thanks for your interest in Syncfusion products.

You can get things to work by handling the PrepareViewStyleInfo event and setting the style there. Here is a code snippet.

GridDataBoundGrid1.PrepareViewStyleInfo += new Syncfusion.Windows.Forms.Grid.GridPrepareViewStyleInfoEventHandler(GridDataBoundGrid1_PrepareViewStyleInfo);

private void GridDataBoundGrid1_PrepareViewStyleInfo(object sender, Syncfusion.Windows.Forms.Grid.GridPrepareViewStyleInfoEventArgs e)
if (e.ColIndex > 0 & e.RowIndex == 0)
e.Style.Font.Bold = true;

Please let me know if this helps.


Replied On October 30, 2008 05:00 PM UTC


That did help. Thank you.



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

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