Rowupdating rowupdated gridview

I have tried to not override in control and instead use delegates like I described in ...

I am having trouble 'saving' the changes the user makes when editing text ina field on a gridview.

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

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.

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.

A Grid View Updated Event Args object is passed to the event-handling method, which enables you to determine the number of rows affected and any exceptions that might have occurred.

the problem is still saving the edits done by the user to the gridview in edit mode.

rowupdating rowupdated gridview-85rowupdating rowupdated gridview-74rowupdating rowupdated gridview-81rowupdating rowupdated gridview-62

Every one can use it to compare the new value with old ones.When the user clicks EDIT then makes a change or two, then UPDATE, the changes are lost. I did some google searches, and there were examples out there but it just isn't making sense. Hi, I would first suggest that you use the Template Columns instead of the Bound Columns this way you are not dependent on the index/position of the column in the Grid View. A Grid View Update Event Args object is passed to the event-handling method, which allows 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 Cancel property of the Grid View Update Event Args object to true.

Leave a Reply