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

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

Thread ID:

Created:

Updated:

Platform:

Replies:

77353 Oct 28,2008 03:53 PM UTC Oct 30,2008 05:00 PM UTC Windows Forms 2
loading
Tags: GridControl
abc
Asked On October 28, 2008 03:53 PM UTC

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

-TC


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.

Regards,
Nisha


abc
Replied On October 30, 2008 05:00 PM UTC

Nisha,

That did help. Thank you.

-TC


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

;