I need to en-/disable validation for a UltraComboEditor.Somthing like...
ValidationSettings validationSettings = _validator.GetValidationSettings(_adjustmentMonthComboEditor);validationSettings.Enabled = false;_validator.SetValidationSettings(_form.AdjustmentMonthComboEditor, validationSettings);
...wont work. I do not want to validate disabled controls.
Please help.
Hi,
I assume _validator is an UltraValidator component? If so, then you do not need the last line of code you have here. Getting the settings and setting Enabled to false on those settings is sufficient, there is no reason to re-assign the settings back to the control. That should not cause a problem, though, it's just redundant.
What exactly "won't work" here?
When is this code being called?