I have a gridview that keep all the item that user store but on the same time I will to all the total price of the two item in the label how can I do that
e.g
from gridview
item 1 $55
item 2 @ 1000
Label must show $1055
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Tan Kai Kai114 reputationPosted Jul 22, 2013, 9:23 AM EDT
Jignesh TrivediRank #16 · 50.3K reputationPosted Jul 22, 2013, 7:01 PM EDT
hi,
Please refer
http://www.aspdotnet-suresh.com/2011/02/how-to-display-sum-of-columns-total-in.html
http://www.ezzylearning.com/tutorial.aspx?tid=1676759
hope this will help you.
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 22, 2013, 7:57 PM EDT
Try like this
in your aspx
in your code
int total = 0;
Regards,
Iftikar
Riyaz AkhtarRank #2,275 · 619 reputationPosted Jul 22, 2013, 8:27 PM EDT
http://msdn.microsoft.com/en-us/library/bb310552.aspx
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Jul 22, 2013, 8:33 PM EDT
http://www.aspdotnet-suresh.com/2011/02/how-to-display-sum-of-columns-total-in.html
http://csharpdotnetfreak.blogspot.com/2009/07/display-total-in-gridview-footer.html