LD
Lucia Diaconu
July 31, 2007 03:35 PM UTC
I found the needed property for the second question:
e.Style.TextColor = Color.Red;
So, only the first question remains :-)
Lucia
HA
haneefm
Syncfusion Team
July 31, 2007 03:37 PM UTC
Hi Lucia,
In a virtual grid, if you want to change a header cell's backcolor, you have to do it by setting e.Style.BackColor ( also set e.Style.Themed property to false) in your QeryCellInfo handler.
void gridControl1_QueryCellInfo(object sender, GridQueryCellInfoEventArgs e)
{
if (e.RowIndex == 0 || e.ColIndex == 0)
{
e.Style.Themed = false;
e.Style.BackColor = SystemColors.GrayText;
}
}
Best regards,
Haneef