Item | Price |
A | 3 |
B | 4 |
A | 5 |
B | 6 |
A | 3 |
C | 2 |
C | 1 |
I need a new datagridview like this:
Sl. No. | Item | Total Price |
1 | A | 11 |
2 | B | 10 |
3 | C | 3 |
How is it possible?
Item | Price |
A | 3 |
B | 4 |
A | 5 |
B | 6 |
A | 3 |
C | 2 |
C | 1 |
Sl. No. | Item | Total Price |
1 | A | 11 |
2 | B | 10 |
3 | C | 3 |
Know the answer? Post it. Somebody with the same question will find it here.
Rahul KaushikRank #2,112 · 676 reputationPosted Sep 7, 2017, 8:34 PM EDT
Amit GuptaRank #190 · 12.8K reputationPosted Sep 7, 2017, 10:58 AM EDT
Midhun TpRank #388 · 6.5K reputationPosted Sep 7, 2017, 9:07 PM EDT
Shovan SahaRank #4,546 · 338 reputationPosted Sep 8, 2017, 3:05 AM EDT
Type
Item
Price
Quantity
L
A
3
2
M
B
4
3
L
A
5
7
M
B
6
8
L
A
3
5
S
C
2
9
S
C
1
12
Sl. No.
Type
Item
TotalPrice
TotalQuantity
1
L
A
11
14
2
M
B
10
11
3
S
C
3
21
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts