Export data from dynamically created Datatable into Excel
<p>I am creating the DataTable dynamically and loading the datatable into Gridview, and adding the grid into Panel1 as given below.</p>

<pre><code>        GridView ResultGrid = new GridView();
        ResultGrid.DataSource = ResultTable;
        ResultGrid.DataBind();
        Panel1.Controls.Add(ResultGrid);
</code></pre>

<p>this is workig fine, now i want to export all the data into Excell, when i click the button.</p>

<p>How to do this?</p>
