G
Guest
Hi All,
I am using VS 2005 and ADO.NET 2.0 to build a Windows Forms. I am
binding my data source to a datagridview and would like to know the following:
Where is the best place to perform data validation
(invalid/out-of-range column values, invalid text, etc...)? Do I perform it
in some DataGridView event before changing to the next row? If so, which
event? OR, do I use the partial class generated by the Dataset Designer. I
guess using the latter approach would be more application centric as I can
implement various forms and whatever is my "save" method, it would execute
the same validation processes on a per table and per column basis. What is
the best practice, or "new way of doing things" when it comes to data
validation with ADO .NET 2.0/VS 2005? Any examples or sample code of this?
Regards,
Giovanni
I am using VS 2005 and ADO.NET 2.0 to build a Windows Forms. I am
binding my data source to a datagridview and would like to know the following:
Where is the best place to perform data validation
(invalid/out-of-range column values, invalid text, etc...)? Do I perform it
in some DataGridView event before changing to the next row? If so, which
event? OR, do I use the partial class generated by the Dataset Designer. I
guess using the latter approach would be more application centric as I can
implement various forms and whatever is my "save" method, it would execute
the same validation processes on a per table and per column basis. What is
the best practice, or "new way of doing things" when it comes to data
validation with ADO .NET 2.0/VS 2005? Any examples or sample code of this?
Regards,
Giovanni