Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
155
Can not disable validation when canceling
posted

HI,

I am using an ultrawingrid in a win form. The grid will do validation when user input something wrong or if  there is a required field and user did n't input anything.

On this same win form I have a cancel button.  I don't want to triger the validation when user clicked the cancel button. I have set cancel button's causevalidation=false, but it is still validating.

Regards.

Ray

  • 2197
    Suggested Answer
    posted

    Hello Ray.

    How are you validating the cell data? Do you have the DisplayLayout.Override.InvalidValueBehavior property set? This property also existis on each column. Are you handling the CellDataError event? Or, are you using the IDataErrorInfor interface?