protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { Label lbl = e.Row.FindControl("Label1") as Label; for (int i = 0; i < GridView1.Columns.Count; i++) { if (lbl.Text == "Client") { GridView1.Columns[13].Visible = false; } } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)