transfer data from a gridview to a database
<p>I have this code</p>

<pre><code>private void BindSecondaryGrid()
{
    DataTable dt = (DataTable)ViewState["SelectedRecords1"];
    gridview3.DataSource = dt;
    gridview3.DataBind(); 
}
</code></pre>

<p>The selected records from the <code>gridview2</code> are saved there <code>ViewState["SelectedRecords1"]</code>.The columns are <strong>id, name, quantity, total</strong>.
Then these records are saved in <code>gridview3</code> with </p>

<pre><code>gridview3.DataSource = dt;
gridview3.DataBind();
</code></pre>

<p>Now i would like to get these values from gridview3 and store them in a table in my database with same columns of course.Is there a way to do that?</p>
