tags:

views:

13

answers:

0

Can someone tell me why my footer is not showing up when i databind the gridview below to a datatable which contains information in the totalMaxScore column. The itemtemplate is working i.e. bind to ActualScore but the footer bind is not???

<asp:GridView ID="tstGrid" Width="60%" runat="server" AutoGenerateColumns="False"
CellPadding="4" ForeColor="#333333" ShowFooter="True" OnRowDataBound="tstGrid_RowDataBound">
<RowStyle BackColor="White" />
    <Columns>
        <asp:BoundField DataField="Description" HeaderText="QC Rule" />
        <asp:TemplateField HeaderText="Actual Score">
            <ItemTemplate>
                <asp:Label ID="lblActualScoreHeader" runat="server" Text='<%# Bind("ActualScore") %>'></asp:Label>
            </ItemTemplate>
            <FooterTemplate>
                <asp:Label ID="lblActualScoreHeader2" runat="server" Text='<%# Bind("totalMaxScore") %>'></asp:Label>              
            </FooterTemplate>
        </asp:TemplateField>         
    </Columns>
</asp:GridView>