Rowupdating command gridview

03-May-2015 06:10 by 3 Comments

Rowupdating command gridview - sec back dating inquiry

When the user clicks the Delete link for a row, the handler for the event checks the last name of the person displayed in the row that the user is trying to delete.

The Grid View control shows the result of joining three tables: Customer, Address, and Customer Address.

When a Customer Address row is deleted, the corresponding Grid View row disappears.

Referential integrity constraints would make the code for an example that actually deletes rows from the Customer table more complex.

For information about how to set up the Adventure Works LT database, see How to: Set Up an Adventure Works LT Sample Database for ASP.

event is raised when a row's Edit button is clicked, but before the Grid View control enters edit mode.

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

A Grid View Edit Event Args object is passed to the event-handling method, which enables you to determine the index of the current row and to indicate that the edit operation should be canceled.

event is raised when a row's Delete button is clicked, but before the Grid View control deletes the row.

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

A Grid View Delete Event Args object is passed to the event-handling method, which enables you to determine the index of the current row and to indicate that the delete operation should be canceled.

To cancel the delete operation, set the event to cancel the delete operation.

The page contains a Grid View control that displays a list of customer names and addresses from the Adventure Works LT database.