Rowupdating e newvalues

In my case this was happening because I was binding to a List of custom objects.

Note A common mistake that a lot of people do is that they perform a databind each and every-time the Page_Load method is called.

This will lead to problems like "Grid View does not show updated values", "Grid View looses values changed by user". In your Page_load, this is typically only inside a block where you check to make sure that Page_Load is not being called during a post-back call.

For a while now I’m trying to figure out why my method, triggered by the Grid View.

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.

I have a Grid View control and use old style manual binding with a Data Source property and invoke the Data Bind() method. Upon modifying the values in textbox which come from Edit Item Template , the new values dont show in the event handler rowupdating(), instead I get the values which appear when the page was rendered.How do I grab the new values from these textboxes and proceed further? New Value["Reason Text"] because it's key function of this event. When I click on the edit button the update and cancel button appear.

rowupdating e newvalues-9rowupdating e newvalues-42rowupdating e newvalues-75

Row Updating event, doesn’t work as all samples say it should do.

Join our conversation (91 Comments).
Click Here To Leave Your Comment Rowupdating e newvalues.

Comments:

Leave a Reply

Your email address will not be published. Required fields are marked *