Hi,
I have a grid view having search filter button on and need to filter the date column with a custom filter. When I click on the 'Custom' option, the Filter Dialog will get popped up and I can give my search values and click on 'OK', If user gives the date as '31/12/2017' then my application is crashing after it raises a validation error message. I don't know where to catch this exception and act upon. Please help me providing solution for at least one of the below things or any other better way to handle this.
1. Validate the date value as per the format expecting by the application before closing the Filter dialog box.
2. Catch the exception raised by the wrong format/OK button click
3. Restrict the user to not enter the values except in the specified format
Thanks in advance.
Chandra