How to hide columns in an ASP.NET GridView with auto-generated columns? - Stack Overflow
GridView1.Columns.Count is always zero even SqlDataSource1.DataBind(); But Grid is ok I can do for (int i = 0; i < GridView1.HeaderRow.Cells.Count;i++) ... @Eran the GridView's columns might be auto-generated and they want to hide a particular column. For
stackoverflow.com |