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.
Up arrow icon