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
455
ValidationEvent in wingridcell.
posted

Hi

I have set the wingrid columns style as Integer, double etc. But the user must be able to enter the word "any" in these cells. Is there an in-built event that I can catch to allow this word to go through?

Any other way of getting this functionality is appreciated.

 

 

Thanks

 

 

Parents
No Data
Reply
  • 37774
    posted

    The only way that I can think of to do this would be to have the NullText of the column by "any".  If you don't want to take this approach, then I'm not sure that you'll be able to use one of the numeric editors, since they are the ones that handle which character inputs are valid.  Should you decide to use a string-based editor, you could certainly perform any validation logic in the BeforeExitEditMode event handler, or even set the RegexPattern property on the column.

    -Matt

Children
No Data