Gridview updating deleting


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. Grid View displays the values of a data source in a table where each column represents a field and each row represents a record.It enables you to select, sort, and edit these items.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.

Likewise Sorting is also a feature in Grid View, using Allowsorting property. We will use Template Field, whenever we want to define some custom control in the data bound controls like Grid View, Data Grid or Data Repeater.If he clicks edit (or) in the edit mode he can be able to see the Textbox.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.: - The Grid View Control is successor control to the v1.x Data Grid Control.

You must have an account to comment. Please register or login here!