Information générale
Catégorie:
The Mere Mortals .NET Framework
Titre:
Validating input in a GridView
Versions des environnements
Hello,
I've gone thru the Jump Start - Web Forms Application. After I was done, I tried to improve it a bit, for training purposes.
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...
How can I handle that ?
Thanks!
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement