According to your project, Edit Form template controls are not bound to Data Source. (2) How do you add validation to this pop Up Edit Form approach? Please take a look at the Grid Editing - Validation online demo, illustrating the manual validation. Disclaimer: The information provided on Dev and its affiliated web properties is provided "as is" without warranty of any kind.
I've gotten the new and old values in the Row Updated event using...
Set the Data Source ID of the Grid View to the ID of that, and it should work. Please remember to click “Mark as Answer” on the post that helps you.
It seems that its not getting the oldvalues and returns a null, which is something strange. If you are not using a 'standard' datasource New/Old Values are not always available in the Row Updating event.
I would greatly appreciate for any help or suggested ideas/approach in order to accomplish this task, or any sample codes snippet. Null Reference Exception: Object reference not set to an instance of an object...".
We have reproduced the issue and our developers are presently working on it. Load Post Data Recursive method to prevent the mentioned behavior. Hopefully, these hints will help you achieve the desired result. I would rather not use the Session to store the data for 2 reasons: - If user closes browser or browser tab with this page, the data stays in the session. My current workaround is getting old Values from the aspxgrdiview using Get Row Values for the Editing Row Visible Index and getting new Values from the editformtemplatecontrol after using Render Utils. Columns["Category Name"], "Category Name is too long."), the Row Updating event is not called and the Pop Up Edit Form stays displayed on screen. - However, after this validation with error, the Pop Up Edit Form shows the original values instead of the modified values (that contain the error)! Regards, Jenny Dear, Binding the controls in the popup editform (aspx) seems to solve all the issues.