How to solve the sum of values in a column in a datagridview in vb.net

后端 未结 0 1234
夕颜
夕颜 2021-01-17 23:15
 Code ---> Dim Sum As Integer = 0
        For i = 1 To DGV.Rows.Count + 1
        Sum += DGV.Rows(i).Cells(3).Value

        Next
        Label7.Text = Sum.ToStri         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题