It would be very convenient to have the OldValue property in the BaseContainerValidateEditorEventArgs class. For instance, it will be useful if it is required to determine dependencies between an old and new entered cell values.
Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
I wonder if anything will happen on this one? - it's been 4 years … :)
Hi,
At present, we do not have immediate plans to add this property. In any case, you can access an old value in the ValidatingEditor event handler by using the BaseEdit.OldEditValue property. For instance, if you are using a grid, the code should look like this:
private void gridView1_ValidatingEditor(object sender, DevExpress.XtraEditors.Controls.BaseContainerValidateEditorEventArgs e) { GridView view = sender as GridView; BaseEdit edit = view.ActiveEditor; object val = edit.OldEditValue; }
Private Sub gridView1_ValidatingEditor(ByVal sender As Object, ByVal e As DevExpress.XtraEditors.Controls.BaseContainerValidateEditorEventArgs) Dim view As GridView = TryCast(sender, GridView) Dim edit As BaseEdit = view.ActiveEditor Dim val As Object = edit.OldEditValue End Sub