Limiting characters in a field
-
Tuesday, June 26, 2012 11:45 AM
I am entering data into an editable data grid and, for example, I want to limit a field to 40 characters because I am printing it to a report and I want the field to be limited in size.
I understand how to set the maximum characters in the validation for a field, but I want to actually cut off the user from typing past the limit. It isn't very user-friendly to just see a validation error saying "whoops, too many characters" and have to figure out how many characters need deleted.
MessageBox.Show("Hello, world.")
All Replies
-
Tuesday, June 26, 2012 11:52 AM
Hi
Kindly go through the below thread
For grid you have to use "FindControlInCollection".
Hope this help...
Regards
Rashmi Ranjan Panigrahi
www.lightswitchspecial.com
If you found this post helpful, please “Vote as Helpful”. If it answered your question, please “Mark as Answer”.
This will help other users to find their answer quickly.- Edited by babloo1436 Tuesday, June 26, 2012 11:56 AM
- Marked As Answer by c4ctopus Tuesday, June 26, 2012 11:56 AM

