Rowupdating e newvalues is empty
This functionality can be implemented using a Label Web control and setting the Label's property across postbacks.That means that after a message is displayed in the Label control it remains displayed until the user performs another action that causes the message to be overwritten.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.This code demonstrates how to Add/Insert, Update, delete, edit in Devexpress aspxgridview. There are two simple and straightforward techniques at our disposal for implementing such functionality. From the Grid View the user can page, sort, edit, and delete products.This article examines these two approaches and includes a working demo available for download that highlights both approaches. On this page we would like to display a message when certain events transpire.Another concern is that any formatting changes to the Label are also remembered across postbacks.For example, if the user attempts to update a product's price to a value that is more than twice its original value the code displays the message "You cannot change a product's price to more than twice what it was before" in a red font.
Additionally, if there is a problem with the user's input when updating a product a message should be displayed.
If the user next sorts or pages the CRUD grid or perform some other action that results in a postback, the Label control continues to display the message "Record deleted," which is now outdated.
What we want is to have the Label's property revert to an empty string on subsequent postbacks.
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.