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
3166
Field Converter Exception
posted

I have setup where Field is using a Converter to convert the bound value type to string. How do I handle exceptions in the Converter? If I throw the exception the application crashes. 

For example, The field is bound to double and Converter is setup convert to string and vice-versa.

<igDP:Field Name="Salary" Label="Test salary" Converter="{StaticResource StringToDoubleConverter}">

I have attached the sample code to demonstrate the exception.

What I am interested to find out is

1. Is there some mechanism to handle exception and put the focus back to cell being edited? 

2. Alternative to setup the Field where invalid inputs are handled more graciously.

PlayParsingException.zip
Parents Reply Children
No Data