Gridview rowupdating event handler


We’ll start with binding data to the Grid View, then build up functionality from there.

protected void Grid View5_Row Editing(object sender, Grid View Edit Event Args e) protected void Grid View5_Row Canceling Edit(object sender, Grid View Cancel Edit Event Args e) protected void Grid View5_Row Updating(object sender, Grid View Update Event Args e) I want to update a column Room Price(type money in DB) only in Grid View from table Room Price.

This enables you to provide an event-handling method that performs a custom routine, such as checking the results of the update operation, whenever this event occurs.

Likewise, there would be messages displayed for inserting a new record and messages displayed in the event of an error.

Such messages are typically displayed using a single Label Web control.

Now we have created the application and open the web.config file to add connection string as shown below.