For a while now I’m trying to figure out why my method, triggered by the Grid View.Row Updating event, doesn’t work as all samples say it should do.We appreciate your patience while we work to find a solution to your inquiry. If you need any further help on this subject, please feel free to reactivate this ticket. This can become a storage problem when having a lot of simultanous users on the server. Load Post Data Recursive for it (as you specified in your answer). If equal, then no db update is needed (values are not dirty).2) How do you add validation to this pop Up Edit Form approach? I can get the new Values from the editformtemplatecontrol and validate it's value. I do not need to load Post Data to the required controls explicitly via the Dev Express.
Obviously the simplest method is to use Data Key Names on the Grid View and then you should have the data in your Grid View Update Event Args as part of e. (In the following example, I cast to a Check Box as I know I have a checkbox at the col Index You Are Interested In - you should cast to whatever control you have in that column).
As the values are inserted into an Ordered Dictionary - you can use the field names to access the changed data 2.
It examines the command object and, if it is the same referenced object, it essentially rebuilds the object, thereby destroying your command text changes.
One approach to solving this problem is to clone the command object so you have a different actual reference: This will work, but since the Command Builder is still connected to the Data Adapter, the Row Updating event will still fire and performance will be hit.
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.
-Frinny Hi all, I seem to be having the same issue but I don't quite follow the trouble with the above post. Can you explain the T/S a little more or maybe point me to another post that may have already covered it? Hi all, I seem to be having the same issue but I don't quite follow the trouble with the above post. Can you explain the T/S a little more or maybe point me to another post that may have already covered it? It's quite common that people create the data source and bind this source to the Grid View in their Page_Load() method.
event handler, which means it will get called for every row.
To get the desired result, perform the following steps: 1) Handle the ASPx Grid View.