Click here to Skip to main content
14,449,862 members
Rate this:
Please Sign up or sign in to vote.
See more:
how to calculate sum of repeater item data bound in .net

What I have tried:

how to calculate sum of repeater item data bound in .net
Posted
Updated 17-Oct-19 3:39am
Comments
Richard MacCutchan 13-Oct-19 3:09am
   
Probably by adding together some values. But if you want a detailed answer then please post a detailed question. We have no idea what data you may be referring to.

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

You can use the ItemDataBound event in the Repeater and have a class level variable that you increment. Repeater.ItemDataBound Event (System.Web.UI.WebControls) | Microsoft Docs[^]

Or, you can do it in the database query.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100