Total Corporate
Total SME
Grand Total
GridView1_RowDataBound(
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { if (e.Row.Cells[0].Text == "Total Corporate") // but here it showing text as null i.e "" { e.Row.BackColor = System.Drawing.Color.Red; } } }
text value as ""
if (e.Row.Cells[0].Text == "Total Corporate") and it is not applying color on Gridview Row
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)