detecting deletes from list(of MyClass) from datagridview?

Deletes from the list will happen automatically when the user deletes a row -- how do I capture and send that information back to the database?

Thanks in advance.
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

Shaun KlineConnect With a Mentor Lead Software EngineerCommented:
The datagridview has 2 events that can be used: onrowdeleting and onrowdeleted. The onrowdeleting event fires before the row is removed from the grid. (This is generally a good place for validation that the row should be deleted.) The onrowdeleted event fires after the row has been removed from the datagridview.
Jorge PaulinoIT Pro/DeveloperCommented:
Do you use a SqlDataAdapter or OledbDataAdapter to fill the DataGridView?
All Courses

From novice to tech pro — start learning today.