in
Forums
Blogs
Files
Devexpress.Com
ClientCenter
Support Center
DevExpress Channel

Validation Provider

Last post 8/11/2008 7:41 AM by Prachi Angadi. 0 replies.
Page 1 of 1 (1 items)
Sort Posts:
Previous Next
  • 8/11/2008 7:41 AM

    Validation Provider

    I have validated the LookupEdit using ValidationProvider.I have written some code in Editvaluechange event and validating even of Lookupedit.

    I want the LookUpedit value to be entered compulsory.So i have set IsNotBlank Property of Validation Provider for LookUpedit.When user doesnt enter anyhting and focus is moved to close button of the form( i.e Close button of ControlBox) the form is not closed.I want the form to be closed even if no value is entered in LookupEdit and if user clicks on CLose button. 

    I have also written

        CustomValidationProvider.ValidationMode = DevExpress.XtraEditors.DXErrorProvider.ValidationMode.Default   

    in form closing event but the form closes when the close button is clicked for second time and not for the first time.

Page 1 of 1 (1 items)
Copyright © 1998-2008 Developer Express Inc.
ALL RIGHTS RESERVED