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
190
WinValidator on Combobox
posted

Is it posible to check the Value of a System.Windows.Forms.ComboBox and not the Text.

Parents
No Data
Reply
  • 5389
    Verified Answer
    posted

    Officespecialisten,

    Try setting the ValidationSettings.ValidationPropertyName to "SelectedValue."  If you were to do this in C# code, it would look something like this:

                ValidationSettings vs = this.ultraValidator1.GetValidationSettings(this.comboBox1);
                vs.ValidationPropertyName = "SelectedValue";

    Hope this helps,

    ~Kim~

Children