May 2010
Intermediate to advanced
1272 pages
61h 18m
English
Following what you learned in Chapter 27, you can provide custom data validation on entities. For example, imagine you want to validate the user input on the ShippedDate order’s property ensuring that its value is not greater than today’s date. To accomplish this, add a new partial class named Order and manage the OnShippedDateChanging partial method as follows:

Now switch back to the code for the main form and add the following event handler associated to the OrdersBindingSourceControl that allows handling exceptions in a user interface-oriented fashion:
You can then eventually add custom validation for any other ...
Read now
Unlock full access