Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 validation in datagrid editing in asp.net 1.1

Author  Topic 

rtutus
Aged Yak Warrior

522 Posts

Posted - 2007-04-29 : 18:56:38
asp.net 1.1

Hi,
I have a datagrid that pulls data from a table. The datagrid has many rows each corresponding to an item.

I populate all the bound columns, then I add a templateColumn that has a Ordered quantity textbox. The textbox allows the user to enter the Ordered quantity for each item (each item is a row in the datagrid).

There is a field called: minimum quantity along with all the fields of the table.

My need: I need to validate that for each item of the datagrid (each datagrid row), the entered value in the Ordered quantity TextBox of the template column is greater than the minimum quantity field of that same datagrid item.

What is a good practice to do that and how please?
Please if you have any reference to an article, i would appreciate if you refer me for this particular requirement.
Thank you
   

- Advertisement -