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
490
Custom Error Control for Validated DropDown List
posted

Hi,

I have a column in my grid that is using an UltraDropDown control to display a value and provide a list for the user.  I have changed the column style to be the following:

ColumnStyle.DropDownValidate

I have to make sure that the cell can’t leave edit mode if an invalid entry is typed in by the user.  This is why I am using the validate style.

 

Is there a way to “catch” the built in validation error that appears and then replace it with my own error message control?  This has been asked in order to keep things consistent throughout the application.

 

Thanks,

Steve

Parents
  • 469350
    Verified Answer
    Offline posted

    Hi Steve,

    Yes, you should be able to do this in the Error or CellDataError event of the grid. One or both of these events should fire when validation fails and the event args will allow you to cancel the default error message so you can show your own.

Reply Children
No Data