2012年11月19日
摘要: 根据绑定的值的不同改变gridview里某一单元格的字体或背景颜色 第一种protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { if (Convert.ToInt32(e.Row.Cells[3].Text.Trim()) >5) { e.Row.BackColor = Color.Red; } } } 第二种 <ItemTemplate> <span style=& 阅读全文
posted @ 2012-11-19 22:49 kenty 阅读(2656) 评论(0) 推荐(0) 编辑