J
jehugaleahsa
Hello:
I have a BindingSource that has its DataSource set to a
BindingList<Customer> where Customer is a business object that
manipulates a DataRow. All changes to a Customer instance, update a
DataTable via DataRow.
It is fairly easy to add a new item to the BindingSource. However,
removing is a different story. I need to be able to know when an item
is removed because I would like to call Delete on the DataRow. I need
to be able to access the item being removed and do it there.
However, the best thing available is ListChanged, and it is pretty
useless for what I am doing. I suppose I could inherit from
BindingSource and overload the methods and add an event.
Is this the way to go? or is there something built in?
~Travis
I have a BindingSource that has its DataSource set to a
BindingList<Customer> where Customer is a business object that
manipulates a DataRow. All changes to a Customer instance, update a
DataTable via DataRow.
It is fairly easy to add a new item to the BindingSource. However,
removing is a different story. I need to be able to know when an item
is removed because I would like to call Delete on the DataRow. I need
to be able to access the item being removed and do it there.
However, the best thing available is ListChanged, and it is pretty
useless for what I am doing. I suppose I could inherit from
BindingSource and overload the methods and add an event.
Is this the way to go? or is there something built in?
~Travis