Rowdeleted and rowupdating

Rated 3.84/5 based on 619 customer reviews

Note that this example uses a custom local data source stored in Session.

rowdeleted and rowupdating-24

Row Deleting – Occurs when a row's Delete button is clicked, but before the Grid View control deletes the row.

I am confused at this point on why my markup and code behind is not touching the Row Updating event when Update button is clicked. The routine loading of the product table now happens only on the first pass through the code behind.

I also don't understand when I select the grid View control and look at the events in the Properties window of Visual Studio 2010 why I see all the proper event procedures listed for each event I expect to use. Data Bind in the Row Command when the Edit Command is invoked and removed it from Row Editing. The code works as I intended it to (and is listed below).

For more information about how to handle events, see Handling and Raising Events.

Greetings; I have read several of the previous help questions on when the grid View Row Updating event doesn't fire. The Row Update event will load a copy of the product table from the database after successfully updating a row.

Leave a Reply