Rowupdating oldvalues

The appropriate solution is storing the Data Source in the Session. Load Post Data to the required controls explicitly via the Dev Express. - How can I my attached example working with a custom edit template using this Enable Callback = false with Pop Up Edit Form mode and edit-visible-only columns ? Get Row Values method and set initial value template controls. This allows you to provide an event-handling method that performs a custom routine, such as canceling the update operation, whenever this event occurs I get the same problem.The New Values and Old Values collections are empty..means I can't do anything but display the orginal data again :( Does anyone else have this problem or a solution? Row Index, False) Next Then in the Row Updating event I am trying to see if the value changed on each row in one of the Text Box controls. Old Values("Vendor List Price") Hi, A workaround is you can add a Hidden Field control beside the Text Box in Grid View.

rowupdating oldvalues-23

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.

If it turns out you don't want to update then do an e.cancel to cancel the update.

Of course you can always query the existing values matching the id in the Grid View_Row Updating event and do your check against that.

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.

Thanks, Jenny -Why is it not possible to use the Enable Callback = false in Pop Up Edit Form mode? The cause of the problem is that grid gets its Post Data after the Page_Init event but before the Page_Load event. Data Bind method is called in the Page_Load event handler, it disturbs values returned from Post Data. We recommend binding the grid in the Page_Init event handler. - When the user opens 2 tabs for the same page, the session data is not specific for those tabs and state saved in the session variable can conflict between pages (removed on tab1 but still available on tab2). Viewstate is page-specific and only lives within lifecycle of let's still use session data as you specify, I'll try to solve that later.== I have 2 questions using your example:1) The e.

Leave a Reply