26-01-17, 01:15 PM
تفضل اخي
Dim sum As Integer = 0
For i As Integer = 0 To DataGridView1.Rows.Count - 1
sum += Convert.ToInt32(DataGridView1.Rows(i).Cells(3).Value)
Next
TextBox1.Text = sum.ToString()
حيث ان رقم 3 هو رقم العمود المراد جمعه
Dim sum As Integer = 0
For i As Integer = 0 To DataGridView1.Rows.Count - 1
sum += Convert.ToInt32(DataGridView1.Rows(i).Cells(3).Value)
Next
TextBox1.Text = sum.ToString()
حيث ان رقم 3 هو رقم العمود المراد جمعه

