Thank you for the reply.
The invalid input is being passed to the Parse and Format events despite
the validation being cancelled.
For instance, if I enter -5, it will parse and then format it as -500%.
Yup i am able to reproduce the behavior on my system too. Pretty
strange, but there must have been a reason to design the system like
that. It is not a bug, Reflector shows that whenever you do a
EndCurrentEdit() on the control, which happens when you validate the
control, the PropertyManager is going to pulldata from the datasource
causing the format and parse events to fire.
The only workaround is to do the validation again in parse and maybe
reset the value to zero or something or let it be as it is and in the
format event only put percentage values for positie values. ugly i know....
Sijin Joseph
http://www.indiangeek.net
http://weblogs.asp.net/sjoseph
> Thank you for the reply.
>
> The invalid input is being passed to the Parse and Format events despite
> the validation being cancelled.
>
> For instance, if I enter -5, it will parse and then format it as -500%.
Paul - 12 Oct 2004 23:42 GMT
Thank you for looking into this. I was afraid that was going to be the
case. Still not sure why it works like that, but oh well.
Thank you again.