O
Ori
Hi,
I have a listbox which is bounded to a datatable. I allow the users to
add/remove items from the list while adding/remove rows from the
datatable which function as the datasource.
When I come to do the "update" back to the datatbase using the
SqlDataAdapter and the insert/delete command, I see that only the new
rows are added and the old one doesn't. removed from the database.
After a short investigation, I notice that if I remove the rows
directly from the datatable the deletecommand doesn't have a row to
operate on.
Can someone explain me exactly how to use the delete command along
with a binding to a listbox which you can remove and add items.
Thanks,
Ori.
I have a listbox which is bounded to a datatable. I allow the users to
add/remove items from the list while adding/remove rows from the
datatable which function as the datasource.
When I come to do the "update" back to the datatbase using the
SqlDataAdapter and the insert/delete command, I see that only the new
rows are added and the old one doesn't. removed from the database.
After a short investigation, I notice that if I remove the rows
directly from the datatable the deletecommand doesn't have a row to
operate on.
Can someone explain me exactly how to use the delete command along
with a binding to a listbox which you can remove and add items.
Thanks,
Ori.