Performing input validation on a datagridview column
Visual Basic
3
Posts
2
Posters
0
Views
1
Watching
-
Hi I have a column that should only allow the user to enter in integer values in the range 0-100. Only integers. How do I do this and where would I need to put the code. Mr oizo
Replace the resular expression to an expression that only accepts numeric (^([0-9]*|\d*\d{1}?\d*)$) To allow only 0-100 use a custome validator just like regex and validate in code behind. Hope this helps
-
Replace the resular expression to an expression that only accepts numeric (^([0-9]*|\d*\d{1}?\d*)$) To allow only 0-100 use a custome validator just like regex and validate in code behind. Hope this helps
Sorry about the earlier message, here you go