0
Is it possible to make a Repeater line not repeat ? Or to bind a few lines of the FooterTemplate
of Repeater
?
I need the last line I tried to put on Footertemplate not to repeat, because it’s the total values.
When I leave on ItemTemplate
it displays 3 times according to the number of lines that the datatable
possesses.
It was supposed to look like this:
But when I put it on Footertemplate it’s like this:
My code:
//ASPX
<FooterTemplate>
<tr>
<td colspan="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>
You can’t leave the last line out of the loop?
– Willian
@So, I’ve already left only that does not fill this last line according to what you need with what I played to give Bind
– AndreeH
Is there any way you can show how it is appearing and how it should appear? Like images, even with fictitious data?
– Willian
Ready @Willian, would have to look like the first image.
– AndreeH
The total values are calculated at what point? You came to check whether the calls of "Totalpurchase Value" and etc are returning the values?
– Willian
@Willian, yes, are returning values, they are loaded at the moment I call the method that returns pro datasource from Peater.
– AndreeH