Click here to Skip to main content
15,994,072 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Kindly help me to show value of colums in gridview such that it displays the total values in textboxes/lables outside the Gridview.

Plzz help ....
Posted
Updated 28-Mar-10 22:47pm
v2
Comments
manoors 8-Aug-10 2:04am    
Reason for my vote of 1
bakwas si

Loop throgh each record in grid and atke the value fo field for which u want to calulate total and sum it
 
Share this answer
 
Use RowDataBound event of Gridview.

You will have access to the rows here. Sum the column values here and after all columns are done, show the sum in a textbox/label placed somehwere below grid.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900