Data entry validation and databinding
-
I am using visual studio .net 2008 and developing a windows forms application. I want to use databinding and keep the business/validation logic in a separate layer (other than presentation layer). The validation may be performed in ColumnChanged event or RowChanged event(depending upon user preference) of the datatable of the dataset. validation error message must be shown in a Message Box if validation is performed in ColumnChanged event and there are validation errors then the focus should be set to the control that has the validation errors. if validation is performed in RowChanged event (i.e. user hitting the save button) and there are validation errors, then the focus should be set to the control which comes first in the tab order and has validation errors. Is there any way i can do it?