<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="true"> </asp:GridView>
GridView1.AutoGenerateColumns = true; GridView1.DataSource = db.Snippets.ToList(); GridView1.DataBind(); //shows us that we have no columns giveJavascriptMessage(GridView1.Columns.Count.ToString()); //I want to be able to hide specific columns at the moment this returns an index out of range GridView1.Columns[0].visible=false;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)