Chk this :
Private Sub DataGridView1_CellEnter(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellEnter
If DataGridView1.CurrentCell.ColumnIndex = 4 Then
Dim n As Integer = DataGridView1.RowCount - 1
dim first_value as String
dim Second_value as String
If Not IsDBNull(DataGridView1.Rows(n).Cells(2).Value) AndAlso DataGridView1.Rows(n).Cells(2).Value.ToString.Length <> 0 Then
first_value =DataGridView1.Rows(n).Cells(2).Value
else
first_value ="0"
end
If Not IsDBNull(DataGridView1.Rows(n).Cells(3).Value) AndAlso DataGridView1.Rows(n).Cells(2).Value.ToString.Length <> 0 Then
Second_value =DataGridView1.Rows(n).Cells(3).Value
else
Second_value ="0"
end
DataGridView1.Rows(n).Cells(4).Value = (Double.Parse(First_value ) * Double.Parse(Second_value )).ToString
End If
End Sub