Private Sub DataGridView1_CellValueChanged(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellValueChanged
If DataGridView1.Columns(e.ColumnIndex).Name = "CostPrice" Then
DataGridView1.Rows(e.RowIndex).Cells("LastUpdate").Value = DateTime.Today.ToString()
DataGridView1.Rows(e.RowIndex).Cells("UpdatedBy").Value = "Your Name"
End If
End Sub
|