if (e.Row.RowType == DataControlRowType.Header)
{
Int32 idx = 0;
foreach (TableCell cell in e.Row.Cells)
{
cell.Text = String.Format("{0}","aa");
if (idx % 2 == 0)
{
cell.BackColor =System.Drawing.Color.Red;
}
else
{
cell.BackColor = System.Drawing.Color.Blue;
cell.ForeColor = System.Drawing.Color.White;
}
}
}