Hi, I have a datagrid with 3 columns and 6 rows. I would like to add all six rows of one column together. Here's what I have so far:
For x = 1 To DataGrid1.ApproxCount
total = total + DataGrid1.Columns(2).Text
Next x
This code however will only add the first row in the column 6 times. Can anyone tell me how I would go about advancing to the next row to add all the rows together?
Thanks!
Be an idiot:
For x = 1 To DataGrid1.ApproxCount
total = total + DataGrid1.Columns(2).Text
Next x
This code however will only add the first row in the column 6 times. Can anyone tell me how I would go about advancing to the next row to add all the rows together?
Thanks!
Be an idiot: