Give this a try:
Remember that the column nubering is zero index based (Column4 = index 3)
Dim sum As Int32 = (From dgvrow In DataGridView1.Rows _
Select CInt(CType(dgvrow, DataGridViewRow).Cells(3).Value)) _
.Sum()
TnTinMN
Practically a Master Poster
640 posts since Jun 2012
Reputation Points: 418
Solved Threads: 148
Skill Endorsements: 13
This works for me, even if there is text in one or more of the cells
On Error Resume Next
For i = 0 To DataGridView1.CurrentRow.Index
sum = sum + DataGridView1.Rows(i).Cells("Column3").Value
Next i
the cells
Gé48
Junior Poster in Training
63 posts since Apr 2010
Reputation Points: 11
Solved Threads: 10
Skill Endorsements: 0
Question Answered as of 4 Months Ago by
Gé48,
TnTinMN
and
Zick Technology