i want to subtract values of two boundFields in gridview and show result in a template filed on run time .. Here is the code
<asp:BoundField ControlStyle-Width="5%" DataField="totalamount" HeaderText="Total" />
<asp:BoundField ControlStyle-Width="5%" DataField="paidamount" HeaderText="Paid" />
<asp:TemplateField HeaderText="Balance"> totalamount-paidamount</asp:TemplateField>
i want to do it in aspx file not code behind..
Problem Solved :-)