I have a gridview with 3 columns, Amount Allocated, Amount Spent, and Amount remaining. The amount remaining is calculated in VB code. The footers give the totals.
For the footer for Amount Remaining, I want to calculate it off the footer values in the first 2 columns. Below is my markup. Can you tell me what I should put in for parameters for my CalcRemaining function, so that it passes the values contained in the footers of the other 2 columns? See below, the part enclosed in ***. I want to pass the values that are in the LabelTotalTotalSpent and LabelTotalAmountAllocated cells.
<asp:TemplateField HeaderText="Total Spent" SortExpression="TotalSpent">
<asp:Label ID="LabelTotalTotalSpent" runat="server" Font-Bold="True"> <%#GetTotalSpent()%></asp:Label>
<asp:Label ID="Label2" runat="server" >
View Complete Post