Hello

I need some advice to accomplish this, i have a datagridview with this data:
Column1 Column2
item1 3
item2 1
item1 2
item1 5
item2 3
item3 1
item1 3

I need an array with distinct values of column1 and the sum of the values in the second dimension of the array:
ar(item1,13), ar(item2,4),ar(item3,1).

I don't know how many items i will have, so i don't know the correct dimension of the array...

I have a lot of code to do the job, but i think there is a better way...

Thanks