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

Row headers

Should the following code change the row header to red....? It doesn't seem to be working.

private void gridGroupingControl1_QueryCellStyleInfo(object sender, GridTableCellStyleInfoEventArgs e)
{
Debug.WriteLine (targetRow.ToString () + "," + targetCol.ToString ());


if(e.TableCellIdentity.ColIndex == targetCol && e.TableCellIdentity.RowIndex == targetRow)
{
e.Style.BackColor = Color.Red;


}
}

1 Reply

AD Administrator Syncfusion Team November 6, 2006 04:27 AM UTC

Hi George,

Try setting the Themed property of the GridStlyeInfo object to False. Below is a code snippet

private void gridGroupingControl1_QueryCellStyleInfo(object sender, GridTableCellStyleInfoEventArgs e)
{
Debug.WriteLine (targetRow.ToString () + "," + targetCol.ToString ());
if(e.TableCellIdentity.ColIndex == targetCol && e.TableCellIdentity.RowIndex == targetRow)
{
e.Style.Themed = false;
e.Style.BackColor = Color.Red;
}
}

Best Regards,
Haneef

Loader.
Live Chat Icon For mobile
Up arrow icon