On rowupdating advice for dating a shy man

Rated 4.7/5 based on 830 customer reviews

A common way to use these collections is to HTML-encode the values supplied by the user before they are stored in the data source. The visitors to a web site can typically be divided into two groups: the users and the administrators.The Grid Data Item class here is implemented specially for this local data source.

Please keep in mind that there are many different ways to update the database using the Grid View control depending on the type of data you are updating and the functionality the user need and there are many solutions to achieve the same end result.

If user clicks the Cancel button while Grid View is in editing mode, you need to Cancel the Editing process and also need to reset the Edit Index property to -1 in the Row Canceling Edit event of the Grid View control as shown below: The last step is to handle the Row Updating event to actually update the back end database.

To do this we first need to obtain the reference of the current row by using its index no as shown in the first line below.

A Grid View Update 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 update operation should be canceled.

To cancel the update operation, set the collections, if necessary, before the values are passed to the data source.

Leave a Reply