foreach (DataControlField col in gridView1.Columns) { if (col.HeaderText == "Name") { col.Visible = false; } }
foreach (GridView item in gridView1.Rows) { if (item.SelectedRow.Cells[1].Text == "company1") { //Do not add your link button } else { //Add link button } }
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs { e.Row.Cells[0].Visible = false; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)