Private Sub DataGridView1_CellEndEdit(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellEndEdit
If DataGridView1.CurrentCellAddress.X = 1 Then
DataGridView1.Rows(DataGridView1.CurrentCellAddress.Y).Cells(2).Value = Val(DataGridView1.Rows(DataGridView1.CurrentCellAddress.Y).Cells(0).Value) * Val(DataGridView1.Rows(DataGridView1.CurrentCellAddress.Y).Cells(1).Value)
end if
End Sub
[[it] 本帖最后由 qlong0728 于 2008-11-7 12:10 编辑 [/it]]