Private Sub Gridview1_CurrentCellDirtyStateChanged(sender As Object, e As EventArgs) Handles Gridview1.CurrentCellDirtyStateChanged If Gridview1.IsCurrentCellDirty Then Gridview1.CommitEdit(DataGridViewDataErrorContexts.Commit) End If End Sub Private Sub GridView1_CellValueChanged(sender As Object, e As DataGridViewCellEventArgs) Handles Gridview1.CellValueChanged If (e.ColumnIndex = 3) Then If (btnAdd.Enabled = True And bBtnClicked = False) Then MsgBox("Data not saved.") End If End If End Sub
modified
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)