Luv L

Luv L

  • 1.6k
  • 88
  • 5.8k

Sum of Datagridview specific column duplicate text values

Sep 29 2024 5:23 AM

Hi

pls help the code of below 

column1   column2

10                 apple

2                    mango

4                    apple

1                     mango

3                     orange

2                     mango

-------------

22

--------------

i want to seperate the sum of item wise value wise like

apple = label1.text = 14          (10+4)

mango = label2.text = 5        (2+1+2)

orage = label3.text = 3

 

thanks in advance


Answers (1)