标签: vb.net
Dim totalValue As Integer For Each dgvRow As DataGridViewRow In DataGridView2.Rows If Not dgvRow.IsNewRow Then totalValue += CInt(dgvRow.Cells(3).Value) End If Next TextBox4.Text = totalValue
我对此代码有问题,它没有显示第3列的总价格或我将其放入表单加载的总列