how can I set a dataset or datatable row to a value taken from a gridview textbox entry?
<p>I have the following code:</p>

<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>  protected void GridView4_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        if (e.CommandName == "UpdateGCommand")
        {
            if (IsPostBack)
            {
                DataSet EditT = new DataSet();
                DataSet ValidT = new DataSet();
                DataRow row;
                if (Session["Edit"] != null)
                {
                    EditT = (DataSet)Session["Edit"];
                }
                if (Session["Valid"] != null)
                {
                    ValidT = (DataSet)Session["Valid"];
                }

                DataTable dtEdit = EditT.Tables[0];
                DataTable dtValid = ValidT.Tables[0];



                GridViewRow gvr = (GridViewRow)(((LinkButton)e.CommandSource).NamingContainer);
                int RowIndex = gvr.RowIndex;
                row = dtEdit.Rows[RowIndex];
                //------------------------------------------------------------------------------------
                //------------------------------------------------------------------------------------
                //------------------------------------------------------------------------------------
                // Must be able to update the EditT or dtEdit with value from Gridview4 textboxes here
                //------------------------------------------------------------------------------------
                //------------------------------------------------------------------------------------
                //------------------------------------------------------------------------------------
                dtValid.Rows.Add(row.ItemArray);
                dtEdit.Rows[RowIndex].Delete();
                GridView4.DataSource = EditT;
                GridView5.DataSource = ValidT;
                GridView4.DataBind();
                GridView5.DataBind();
            }
            
        }
    }</code></pre>
</div>
</div>
</p>

<p>And the following asp:</p>

<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;asp:GridView ID="GridView4" runat="server" CellPadding="4" ForeColor="#333333" 
            GridLines="None" OnRowCommand="GridView4_RowCommand" 
            OnSelectedIndexChanged="GridView4_SelectedIndexChanged" AutoGenerateColumns="False"&gt;
            &lt;AlternatingRowStyle BackColor="White" /&gt;
            &lt;Columns&gt;
            &lt;asp:TemplateField ShowHeader="False"&gt;
                &lt;ItemTemplate&gt;
                    &lt;asp:LinkButton OnClick="UpdateRow_Click" 
                        ID="LinkButton1" 
                        runat="server" 
                        CausesValidation="false" 
                        CommandName="UpdateGCommand" 
                        Text="Update"&gt;
                    &lt;/asp:LinkButton&gt;                    
                &lt;/ItemTemplate&gt;     
            &lt;/asp:TemplateField&gt;
                &lt;asp:TemplateField HeaderText="Name"&gt;
                &lt;ItemTemplate&gt;
                    &lt;asp:TextBox 
                        ID="textBox1" 
                        runat="server" 
                        Text='&lt;%#Eval("Name")%&gt;'&gt;
                    &lt;/asp:TextBox&gt;
                    &lt;asp:RequiredFieldValidator ID="rfvName" runat="server" ErrorMessage="Name is a required field" 
                            ControlToValidate="textBox1" Text="*" ForeColor="Red"&gt;
                    &lt;/asp:RequiredFieldValidator&gt;
                &lt;/ItemTemplate&gt;
           &lt;/asp:TemplateField&gt;
           &lt;asp:TemplateField HeaderText="Email"&gt;
                &lt;ItemTemplate&gt;
                    &lt;asp:TextBox 
                        ID="textBox2" 
                        runat="server" 
                        Text='&lt;%#Eval("Email")%&gt;'&gt;
                    &lt;/asp:TextBox&gt;
                    &lt;asp:RequiredFieldValidator ID="rfvEmail" runat="server" ErrorMessage="Email is a required field" 
                            ControlToValidate="textBox2" Text="*" ForeColor="Red"&gt;
                    &lt;/asp:RequiredFieldValidator&gt;
                &lt;/ItemTemplate&gt;
           &lt;/asp:TemplateField&gt;
           &lt;asp:TemplateField HeaderText="Mobile"&gt;
                &lt;ItemTemplate&gt;
                    &lt;asp:TextBox 
                        ID="textBox3" 
                        runat="server" 
                        Text='&lt;%#Eval("Mobile")%&gt;'&gt;
                    &lt;/asp:TextBox&gt;
                    &lt;asp:RequiredFieldValidator ID="rfvMobile" runat="server" ErrorMessage="Mobile is a required field" 
                            ControlToValidate="textBox3" Text="*" ForeColor="Red"&gt;
                    &lt;/asp:RequiredFieldValidator&gt;
                &lt;/ItemTemplate&gt;
            &lt;/asp:TemplateField&gt;


        &lt;/Columns&gt;
            &lt;FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" /&gt;
            &lt;HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" /&gt;
            &lt;PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" /&gt;
            &lt;RowStyle BackColor="#FFFBD6" ForeColor="#333333" /&gt;
            &lt;SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" /&gt;
            &lt;SortedAscendingCellStyle BackColor="#FDF5AC" /&gt;
            &lt;SortedAscendingHeaderStyle BackColor="#4D0000" /&gt;
            &lt;SortedDescendingCellStyle BackColor="#FCF6C0" /&gt;
            &lt;SortedDescendingHeaderStyle BackColor="#820000" /&gt;
        &lt;/asp:GridView&gt;</code></pre>
</div>
</div>
</p>

<p>Here is what's happening:
Starting point
<a href="https://i.stack.imgur.com/Xb20P.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Xb20P.png" alt="Starting point"></a></p>

<p>Editing the Email in Row 2 to fit Email specifications</p>

<p><a href="https://i.stack.imgur.com/pGoUG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pGoUG.png" alt="Editing the Email in Row 2 to fit Email specifications"></a></p>

<p>After hitting the Update link button in Row 2</p>

<p><a href="https://i.stack.imgur.com/a75di.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/a75di.png" alt="After hitting the Update link button in Row 2"></a></p>

<p>As you can see I am not able to send the correct Value from the edit box as I don't know what code to use for it. Please help</p>