2012-01-30 39 views

答えて

1

は、価格はCell 1あり、その量は、Cell 2

For i As Integer = 0 To DataGridView1.RowCount - 1 
    Dim xQty as Double = CDBL(DataGridView1.Rows(i).Cells(0).Value) 
    Dim xPrc as Double = CDBL(DataGridView1.Rows(i).Cells(1).Value) 
    DataGridView1.Rows(i).Cells(2).Value = xQty * xPrc 
Next 
関連する問題