I have problem dealing with EditItemTemplate. What I am trying to do is to update 'lowerIncomeBoundary' with the sum of amount of current value in tb1 and tb2 which is the sum of "lowerIncomeBoundary" and "upperIncomeBoundary". Appreciate if someone can provide me a way to access item in EditItemTemplate...
<asp:TemplateField HeaderText="Chargeable<br/>Income<br/>RM">
<ItemTemplate>
<%# Eval("lowerIncomeBoundary")%><br /><%# Convert.ToInt32(Eval("upperIncomeBoundary")) - Convert.ToInt32(Eval("lowerIncomeBoundary")) %>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox Text='<%#Bind("lowerIncomeBoundary") %>' runat="server" ID="tb1"></asp:TextBox>
<asp:TextBox Text='<%#Bind("upperIncomeBoundary") %>' runat="server" ID="tb2"></asp:TextBox>
</EditItemTemplate>
</asp:TemplateField>