How Multiply data in columns of DataGridView
I'am using one DataGridView, and i'am multiply 2 cells of this, e after update this in one Access Data Base.
In the screen this datas is correct, but after update, the cells used in multiply is empty in the Data Base.
My code for multiply:
If e.ColumnIndex = Me.DataGridView1.Columns(6).Index _
AndAlso (e.Value IsNot Nothing) Then
With Me.DataGridView1.Rows(e.RowIndex).Cells(e.ColumnIndex)
one = e.Value.ToString
End With
End If
If e.ColumnIndex = Me.DataGridView1.Columns(8).Index _
AndAlso (e.Value IsNot Nothing) Then
With Me.DataGridView1.Rows(e.RowIndex).Cells(e.ColumnIndex)
two = e.Value.ToString
End With
End If
If e.ColumnIndex = Me.DataGridView1.Columns(9).Index _
AndAlso (e.Value IsNot Nothing) Then
With Me.DataGridView1.Rows(e.RowIndex).Cells(e.ColumnIndex)
If one = String.Empty Then
one = "0"
End If
If two = String.Empty Then
two = "0"
End If
e.Value = one * two
End With
End If

