I have a grid view with three columns and five rows with text item item template fields for Inserting data on runtime to DB using Gridview.and i want to make some calculations with this grid view like addition of Column of Col1 and Col2 in 3rd column and also Sum of Col1 in footer.And also i want to make calculation as text changes in textboxes with out postback or page refresh.Please tell me how can i do this. I have following code to make grid view
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" ShowFooter="True">
<Columns>
<asp:TemplateField HeaderText="One">
<FooterTemplate>
<asp:Label ID="lblOne_tot" runat="server"></asp:Label>
</FooterTemplate>
<ItemTemplate>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Two">
<FooterTemplate>
<asp:Label ID="lblTwo_tot" runat="server"></asp:Label>
</FooterTemplate>
<ItemTemplate>
<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Total">
<ItemTemplate>
<asp:Label ID="lblTotal" runat="server"></asp:Label>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>