Is it possible to have a repeater line not repeat? Or bind in lines of FooterTemplate
of Repeater
?
I need the last line I tried to put in FooterTemplate does not repeat, because they are the total values.
When I leave in ItemTemplate
it displays 3 times according to the number of lines that datatable
has.
It was supposed to look like this:
ButwhenIputitinFooterTemplateitlookslikethis:
Mycode:
//ASPX
<FooterTemplate><tr><tdcolspan="2" class="tbFundoColVazia">
<b>
<asp:Label ID="Label46" class="fontlbl" runat="server" Text="Totais"></asp:Label></b>
</td>
<td id="colCompraQtdeTotais" style="font-weight: bold" class="tbFundoColVazia">
<%# Eval("qtdTotalCompra") %>
</td>
<td id="colCompraValorTotais" style="font-weight: bold" class="tbFundoColVazia">
<%# string.Format("{0:C}", Eval("valorTotalCompra")).Replace("R$", "") %>
</td>
<td id="colDevolucaoQtdeTotais" style="font-weight: bold" class="tbFundoColVazia">
<%# Eval("qtdTotalDevolucao") %>
</td>
<td id="colDevolucaoValorTotais" style="font-weight: bold" class="tbFundoColVazia">
<%# string.Format("{0:C}", Eval("valorTotalDevolucao")).Replace("R$", "") %>
</td>
<td id="colRetornoQtdeTotais" style="font-weight: bold" class="tbFundoColVazia">
<%# Eval("qtdTotalRetorno") %>
</td>
<td id="colRetornoQValorTotais" style="font-weight: bold" class="tbFundoColVazia">
<%# string.Format("{0:C}", Eval("valorTotalRetorno")).Replace("R$", "") %>
</td>
<td id="colVendaQtdeTotais" style="font-weight: bold" class="tbFundoColVazia">
<%# Eval("qtdTotalVenda") %>
</td>
<td id="colVendaValorTotais" style="font-weight: bold" class="tbFundoColVazia">
<%# string.Format("{0:C}", Eval("valorTotalVenda")).Replace("R$", "") %>
</td>
<td id="colDoacaoQtdeTotais" style="font-weight: bold" class="tbFundoColVazia">
<%# Eval("qtdTotalDoacao") %>
</td>
<td id="colDoacaoValorTotais" style="font-weight: bold" class="tbFundoColVazia">
<%# string.Format("{0:C}", Eval("valorTotalDoacao")).Replace("R$", "") %>
</td>
<td id="colReenvioQtdeTotais" style="font-weight: bold" class="tbFundoColVazia">
<%# Eval("qtdTotalReenvio") %>
</td>
<td id="colReenvioValorTotais" style="font-weight: bold" class="tbFundoColVazia">
<%# string.Format("{0:C}", Eval("valorTotalReenvio")).Replace("R$", "") %>
</td>
</tr>
</FooterTemplate>