title: gridview hide column after databind or before
body: <p>I have dataset as you can see below.I want to hide first three columns. But the way I do below doesnt work. How can I do hide them?</p>
  
  <pre><code>// Read all posts and fill  gridview
      //////////////////////////////////////////////////
      DbCommand dbCommand2;
      dbCommand2 = db.GetStoredProcCommand("PC_Select_News");
      db.AddInParameter(dbCommand2, "UserId", DbType.Guid, new Guid(Session["SessionUserId"].ToString().Trim()));
      DataSet ds = db.ExecuteDataSet(dbCommand2);
      grid_all_posts.DataSource = ds;
  
      grid_all_posts.DataBind();
      grid_all_posts.Columns[1].Visible = false;
      grid_all_posts.Columns[2].Visible = false;
  </code></pre>