Start In rowupdating event in

In rowupdating event in

This example ties the Sql Data Source's Select Command to a stored procedure called Get Customers By Region that requires a parameter called "Region": this. For instance, you can set a sort order on a SQL statement being used to retrieve the data through the Select Arguments' Sort Expression property.

NET Architecture MVP (Microsoft Most Valuable Professional) works as an Architect Consultant and provides consultancy on how to design and develop Web applications.

Suprotim is also the founder and primary contributor to Dev Curry, Dot Net Curry and SQLServer Curry.

The button is associated with the Command Name property as “Edit”.

The exact situation I faced is like this – I have a Grid View with a column which contains an edit button.

the Deleting event fires before issuing a delete) and fires *ed events afterwards (e.g. You could, for instance, validate any data in the Updating event and, if you find a problem, prevent the update by setting the Cancel property to True.

the Deleted event fires after a delete is performed). There's nothing wrong with that, but I'd recommend using the similarly named event on the Data View that the Data Source is bound to.

The HTML code for the Grid View is as follow : Till now everything looks fine but the problem arises when you run this application.