Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
- {
- if (e.Row.RowType == DataControlRowType.DataRow)
- {
- var CellValue = e.Row.Cells[3].Text;
- if (CellValue != "Processed")
- {
- e.Row.BackColor = System.Drawing.Color.Yellow;
- e.Row.Cells[3].BackColor = System.Drawing.Color.Red;
- }
- }
- }
Add Comment
Please, Sign In to add comment