Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Validating input in a GridView
Message
 
To
11/01/2007 11:48:08
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
VB 8.0
OS:
Windows XP
Database:
MS SQL Server
Miscellaneous
Thread ID:
01184632
Message ID:
01184883
Views:
21
Isabelle,

>My problem is the following: I would like to validate what the user can enter when editing the order detail grid view. For now, some validations have been done in the Jump Start, but I have the following problem: When I enter a string (eg: "test") in the ProductId column of the grid for example, I get an exception because this value "test" cannot be converted in integer...

Rather than using a free-form text field for the product id, you can instead use a dropdown list in the grid to allow the user to select from a list of products. For details, see the MM .NET Dev Guide topic "Adding a DropDownList to the GridView".

Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Reply
Map
View

Click here to load this message in the networking platform