title: Gridview to Excel
body: <p>I have a gridview with <code>AutoGenerateDeleteButton</code></p>
  
  <p><img src="https://i.stack.imgur.com/3xaiz.jpg" alt="enter image description here"></p>
  
  <p>And i export this gridview simple this code..</p>
  
  <pre><code>Response.Clear();
          Response.AddHeader("content-disposition", "attachment;filename=Avukat.xls");
          Response.Charset = "";
  
          Response.ContentType = "application/vnd.xls";
          System.IO.StringWriter stringWrite = new System.IO.StringWriter();
          System.Web.UI.HtmlTextWriter htmlWrite = new HtmlTextWriter(stringWrite);
          GridView1.RenderControl(htmlWrite);
          Response.Write("&lt;meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" /&gt;");
          Response.Write(stringWrite.ToString());
          Response.End();
  </code></pre>
  
  <p>There is no problem with that.</p>
  
  <p>But in the excel there is a delete column :))</p>
  
  <p><img src="https://i.stack.imgur.com/DgVRG.jpg" alt="enter image description here"></p>
  
  <p>How can i delete the delete column in excel?</p>