Hi,
I wanna display totals at the footer of gridview, but it returns empty even if im binding the data from database.
I'm not sure if footer template can accept this code:
Thanks,
Cielo
I wanna display totals at the footer of gridview, but it returns empty even if im binding the data from database.
I'm not sure if footer template can accept this code:
<FooterTemplate>
<asp:Label ID="lblTotalQty" runat="server" Text='<%# Eval("Total") %>'></asp:Label>
<br />
<asp:Label ID="lblTotalQtyF" runat="server" Text='<%# Eval("TotalF") %>'></asp:Label>
</FooterTemplate>
<telerik:GridTemplateColumn HeaderText="Qty Sold" UniqueName="QuantitySold" ItemStyle-Width="70" ItemStyle-HorizontalAlign="Right" HeaderStyle-HorizontalAlign="Center"> <FooterTemplate> <asp:Label ID="lblTotalQty" runat="server" Text='<%# Eval("Total") %>'></asp:Label> <br /> <asp:Label ID="lblTotalQtyF" runat="server" Text='<%# Eval("TotalF") %>'></asp:Label> </FooterTemplate> <ItemTemplate> <asp:Label ID="lblQtySold" runat="server" Text='<%# Eval("QtySold") %>'></asp:Label><br /> <asp:Label ID="lblQtySoldF" runat="server" Text='<%# Eval("QtySoldF") %>'></asp:Label> </ItemTemplate> <HeaderStyle HorizontalAlign="Center" /> <ItemStyle HorizontalAlign="Right" /> </telerik:GridTemplateColumn>Thanks,
Cielo