protected void Gridview1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { DataTable dt = new DataTable(); dt = (DataTable)Gridview1.DataSource; int rowindex = e.Row.RowIndex; e.Row.Attributes.Add("class", "customerRow"); } if (e.Row.RowType == DataControlRowType.DataRow) { if (e.Row.Cells[5].Text.Equals("Finished")) { e.Row.BackColor = System.Drawing.Color.DarkGreen; e.Row.ForeColor = System.Drawing.Color.White; e.Row.Visible = false; } } } protected void Button1_Click(object sender, EventArgs e) { } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)