Hello.

I'm using a DGV and i'm looking for the best way to update the database whenever a new row is created OR whenever any datagrid view cell changes.

The following code works fine for new rows and my question is how can i adapt it to include ANY other changed cells of any other rows being or not new rows.

Code:
If Me.PECASDataGridView.CurrentRow.IsNewRow = True Then
Me.Validate()
            Me.PECASBindingSource.EndEdit()
            Me.TableAdapterManager.UpdateAll(Me.CV_PARTSDataSet)
        End If
Many thanks in advance for any kind help.
Rgds,
Octavio