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. Image for the cookie policy date
close icon

Make GridDataBoundControl headers look like GridControl Headers

Hi,

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

thanks
Deepak


1 Reply

JJ Jisha Joy Syncfusion Team 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


Loader.
Live Chat Icon For mobile
Up arrow icon