select col1, col2, col3, col4, col5 from tablename
protected void GridView1_RowCreated(object sender, GridViewRowEventArgs e) { if (<YOUR CONDITION GOES HERE>) { GridView1.Columns[0].Visible = false; // just change the index of Columns to where your Template column resides } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)