Is it possible to have two footer template in single gridview

Posted by Oswaldlily under ASP.NET on 6/7/2012 | Points: 10 | Views : 4973 | Status : [Member] | Replies : 2
Is it possible to have two footer template in single gridview

I need one row for sum in footer template
another row for difference in footer template

so how i resolve it??




Responses

Posted by: .Netlearner on: 6/7/2012 [Member] Starter | Points: 25

Up
0
Down
U Can use two labels to display sum and difference in the same footer of the grid.

Else u can use two seperate template field through which u can have two Footer Template

Oswaldlily, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Jobin on: 6/7/2012 [Member] Starter | Points: 25

Up
0
Down
<FooterTemplate>
<table width="100%">
<tr><td><asp:Literal runat="server" ID="ltField1" Text='<%# Bind("sum") %>'></asp:Literal></td>
</tr>
<tr><td>><asp:Literal runat="server" ID="ltField2" Text='<%# Bind("difference") %>'></asp:Literal></td>
</tr>
</table>
</FooterTemplate>

Oswaldlily, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response