if (e.Row.RowType == DataControlRowType.DataRow) { HiddenField rowType = (HiddenField)e.Row.FindControl("RowType"); if (rowType != null) { switch (rowType.Value) { case "2": ((HyperLink)(e.Row.FindControl("FactorName"))).NavigateUrl = "http://www.google.com"; ((HyperLink)(e.Row.FindControl("FactorName"))).Font.Bold = true; break; case "3": ignoreRow = true; try { ((Label)(e.Row.FindControl("VAL1"))).Text = ""; } catch { } break; case "4": grdSAS.Rows[e.Row.RowIndex - 1].Attributes.Add("style", "Background-color:#ccc"); //do summerize; break; } } } }
grdSAS.Rows[e.Row.RowIndex - 1].Attributes["style"] = "background-color: #ccc";
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)