Resident validating data entry form

This action automatically creates an Column Changing or Row Changing event handler.For more information, see How to: Validate Data During Column Changes or How to: Validate Data During Row Changes.The Column Changing, Row Changing, and Row Deleting events are raised during the update process.You can use these events to validate data or perform other types of processing.For a complete example, see Walkthrough: Adding Validation to a Dataset.

The data row's Begin Edit method turns off the Row Changing and Row Changed events after each individual column change.This reduces errors as well as the potential number of round trips between an application and the database.You can confirm that data that's being written to a dataset is valid by building validation checks into the dataset itself.The validation process also confirms that these values are following the rules that have been established for your application.It's a good practice to validate data prior to sending updates to the underlying database.These events are useful when you want to take further action based on a successful update.

You must have an account to comment. Please register or login here!