We're creating some web application using VS 2010 with Visual Basic.
We try to update/delete an existing record using DetailsView associated with AccessDataSource
We configure DetailsView to bind with the AccessDataSource and also configure the AccessDataSource for SELECT, INSERT, UPDATE, and DELETE statements.
In DetailsView we check "Enable Inserting", "Enable Editing", "Enable Deleting"
The problem is that when we try to update a record, after updating data in text boxes of DetailsView and clikcing "Update", the record is not updated in both DetailsView and the real database table. When we try to delete a record, after clicking "Delete", the record is not deleted. It is still there in both DetailsView and gthe real database table.
We carefully checked the real database table and all the data is still there after each operation.
We looked into the events of DetailsView, we found they have a bunch of them. Among them are "ItemUpdated", "ItemUpdating", "ItemDeleted", "itemDeleting", etc.
Do we - by ourselves - have to implement the sub's associated with these events so that the records could be updated or deleted OR the auto-genererated code by Visual Studio will implement them for us?
Thanks a lot,
Thanks for the reply.
To be very simple, if we don't write any code for the event, does visual studio IDE generate code that execute the command?
I read the manual of MSDN, it seems VS does this. However, maybe, I missed something while reading.