Click here to Skip to main content
15,891,204 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
I have a DataGridView and need to validate input from a user to two digit numbers only. No text allowed, and no more then two digit entries.
Help please
Posted

1 solution

"Two digit numbers" in combination with "no text allowed" is oxymoron. Any digit is text.

You will find one recipe here: http://stackoverflow.com/questions/3051996/how-to-prevent-bad-formatted-data-input-in-datagridviewcell[^].

—SA
 
Share this answer
 
Comments
DJAppleboy 13-Oct-11 23:08pm    
then allow me to say integer input's in programming language! Thanx

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900