Home > DeveloperSection > Forums > c# winform Datagridview sum fo cell
Tech Sys
Tech Sys

Total Post:15

Points:105
Posted on    October-13-2014 1:11 AM

 .NET C# 
Ratings:


 0 Reply(s)
 718  View(s)
Rate this:
hello,

datagridview having 4 columns
 
c1 c2 c3 c4
c1 for int only
c2 for Alphabets only
c3 for x(multiplication)
c4 double xx(multiplication)
 
for eg:
c1 c2 c3 c4
5  A
2  B  2
4  C
4  D     3
2  A
2  B
2  C
2  D
 
using textbox1 for total (total should be come without any button click)
total = 74
 
explain of total
5A
2B X 2
(5 + 2)*2 = 14
5A
2B X 2
4C
4D    X 3
(((5 + 2)*2 = 14 + 4 + 4 )*3 = 66
66 + 2 + 2 + 2+ 2 = 74
 
also i want total of each alphabets like using four more labels
 
label1 A = 32
label2 B = 14
label3 C = 14
label4 D = 14
total = 74
 
please help me the code of datagridview sum of cell values using multiple multiplications.


Don't want to miss updates? Please click the below button!

Follow MindStick