Click here to Skip to main content
15,920,005 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to Sum the values of multiple rows of a data grid view and display result in the first row using .net. Reply soon
Posted

1 solution

I assume you are filling the datagridview with a table? So write a SUM-query in that table, in which you add up the values of a column (or more columns). Then, on a button click event/key event, or what ever call that query through the TableAdapter of that table and store the value in an int. Output that int in your first row.
 
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