if (e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.Cells[1].BackColor = System.Drawing.Color.Red;//第二列的颜色
}
if (e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.Cells[1].BackColor = System.Drawing.Color.Red;//第二列的颜色
}
相关文章: