Click here to Skip to main content
15,882,698 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
ve been thinking about what is the best way to do my datagridview math. I have this datagridview which I need to go row by row multiplying column "castka" with počet" and then + the next row then + next row until Im on the end and then display the final value in textBox. As I'm beginner in c# and sql I wanted to discuss this with you for first. (codes are welcome :) )

Thanks so much in advance.

1 solution

Refer to this link and remember to replace summation with multiplication.

Display sum of columns total in gridview footer in[^]

Regards.. :laugh:
Share this answer
mareksip 20-Jul-13 10:28am    
Hello thank you so much for reply, but I need to multiply two columns together počet*castka then remember this value and add to it row below again pocet*castka until the end of rows and all those rows summ together.

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