G
Guest
Hi experts,
I have a question concerning data binding to custom objects in a
Windows.Forms application:
I have a custom business object named "Employee". Now I created an Object
Data Source and drag it onto a form. So there is a BindingNavigator and a
DataGridView.
If I click the Delete button of the BindingNavigator, the Employee object is
removed from the employeeBindingSource.List. So far so good, but how can I
find out which Employee was deleted so that I can delete my real Employee
object in the DataBase?
The the ListChanged event of the employeeBindingSource is too late, the
object was already removed from the employeeBindingSource.List.
Thanks in advance
I have a question concerning data binding to custom objects in a
Windows.Forms application:
I have a custom business object named "Employee". Now I created an Object
Data Source and drag it onto a form. So there is a BindingNavigator and a
DataGridView.
If I click the Delete button of the BindingNavigator, the Employee object is
removed from the employeeBindingSource.List. So far so good, but how can I
find out which Employee was deleted so that I can delete my real Employee
object in the DataBase?
The the ListChanged event of the employeeBindingSource is too late, the
object was already removed from the employeeBindingSource.List.
Thanks in advance