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.

Make GridDataBoundControl headers look like GridControl Headers

Thread ID:

Created:

Updated:

Platform:

Replies:

77134 Oct 15,2008 12:03 PM Oct 16,2008 04:56 AM Windows Forms 1
loading
Tags: GridControl
d p
Asked On October 15, 2008 12:03 PM

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 04:56 AM

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.

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.

;