Sorry but someone gave me the anser to this question before, but I have some how lost it, please can anybody help once again?

The question is how to "loop through a datagrid collumn to add values to a variable

in VB6 it was something like:
do while not .eof
myvariable = myvariable + datagrid1.collumns(6)
loop

Thanks to anybody who has the time to spare