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

Make GridDataBoundControl headers look like GridControl Headers

Thread ID:

Created:

Updated:

Platform:

Replies:

77134 Oct 15,2008 04:03 PM UTC Oct 16,2008 08:56 AM UTC WinForms 1
loading
Tags: GridControl
d p
Asked On October 15, 2008 04:03 PM UTC

Hi,

Is there a simple way to make the GridDataboundGrid Control's headers look like the GridControl (shaded golden )!!

thanks
Deepak


Jisha Joy [Syncfusion]
Replied On October 16, 2008 08:56 AM UTC

Hi Deepak,

We appreciate your interest in Syncfusion products.

The desiored behavior can be achieved by handling the QueryCellInfo event. Please refer the code:

this.gridDataBoundGrid1.Model.QueryCellInfo += new GridQueryCellInfoEventHandler(Model_QueryCellInfo);


void Model_QueryCellInfo(object sender, GridQueryCellInfoEventArgs e)
{
if (e.RowIndex == 0)
{
e.Style.Themed = false;
e.Style.BackColor = Color.FromArgb(203, 199, 184);
}
}


Regards,
Jisha


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

;