10. Validating Data Input and Handling Errors

An important part of any data-driven application is ensuring data consistency and handling errors when they occur. Ensuring data consistency requires a combination of data input validation and concurrency protections at the data access level. Validation means ensuring that any user input meets the application’s expectations for what that data should contain. Data concurrency issues arise when two or more users or pieces of code can access and modify the same data at the same time. Whenever dealing with data, errors can occur at a number of levels, and you need to be prepared to deal with those errors in a way that minimizes the impact on users and yet ensures the consistency and correctness of the ...

Get Data Binding with Windows Forms 2.0: Programming Smart Client Data Applications with .NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.