Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click For i As Integer = 0 To DataGridView2.RowCount - 1 Dim xQty As Double = CDbl(DataGridView2.Rows(i).Cells(8).Value) Dim xPrc As Double = CDbl(DataGridView2.Rows(i).Cells(9).Value) DataGridView2.Rows(i).Cells(10).Value = xQty * xPrc Next End Sub
Product--------Price--------Quantity--------Total Amount Apple----------10.00-----------2---------------20 Banana---------20.00-----------3---------------20 Orange---------10.00------------5---------------30
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)