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.
codefingerAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
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.
0
 
Jorge PaulinoIT Pro/DeveloperCommented:
Do you use a SqlDataAdapter or OledbDataAdapter to fill the DataGridView?
0
All Courses

From novice to tech pro — start learning today.