Updating Data in the gridview
<p>I have a gridview in VS 2005. The grid is displayed in textboxes, so the user can edit. </p>

<pre><code>  &lt;asp:TemplateField ItemStyle-Width="50"&gt;
      &lt;ItemTemplate&gt;
          &lt;asp:TextBox ID="txtSmall" runat="server" Width="45px" Text='&lt;%#DataBinder.Eval(Container.DataItem,"Small") %&gt;' OnTextChanged="TxtSmallChanged"&gt; &lt;/asp:TextBox&gt;                                                          
      &lt;/ItemTemplate&gt;
  &lt;/asp:TemplateField&gt;
  &lt;asp:TemplateField ItemStyle-Width="50"&gt;
       &lt;ItemTemplate&gt;
            &lt;asp:TextBox ID="txtMedium" runat="server" Width="45px" Text='&lt;%#DataBinder.Eval(Container.DataItem,"Medium") %&gt;' OnTextChanged="TxtMediumChanged"&gt; &lt;/asp:TextBox&gt;                                                          
        &lt;/ItemTemplate&gt;
    &lt;/asp:TemplateField&gt;
 &lt;asp:TemplateField ItemStyle-Width = "50"&gt;
       &lt;ItemTemplate&gt;
             &lt;asp:TextBox ID="txtTotal" runat="server" Width="45px" Text='&lt;%#DataBinder.Eval(Container.DataItem,"Total") %&gt;'&gt; &lt;/asp:TextBox&gt;
             &lt;/ItemTemplate&gt;                                                     
       &lt;/asp:TemplateField&gt;
</code></pre>

<p>Whenever the textbox txtsmall or txtmedium changes(numbers), the Textbox txttotal has to get updated as total of both in txtSmall and txtmedium. I am using a function TxtSmallChanged when text in it is changed. How do i write the codebehind function to update the txtTotal. I hope i am clear. Thank you so much!!</p>
