Nov 6, 2009 #1 cs2009 Programmer Aug 10, 2009 50 US Using Visual Studio 2008. I need some help with how to validate a cell in a datagridview. I only want to allow the user to enter characters A-Z, a-z, 0-9 and - (hyphen). Thanks.
Using Visual Studio 2008. I need some help with how to validate a cell in a datagridview. I only want to allow the user to enter characters A-Z, a-z, 0-9 and - (hyphen). Thanks.
Nov 6, 2009 #2 chapuchi30 IS-IT--Management Nov 5, 2009 5 VE You could use a custom field validator,so that the field only takes those characters. Place the validator next to the textbox of course Upvote 0 Downvote
You could use a custom field validator,so that the field only takes those characters. Place the validator next to the textbox of course
Nov 6, 2009 #3 chapuchi30 IS-IT--Management Nov 5, 2009 5 VE Sorry for repost, here is a page you should find useful for testing out regular expresions, and creating your own. http://www.roblocher.com/technotes/regexp.aspx And some tips from Microsoft of course http://msdn.microsoft.com/en-us/library/ms998267.aspx Upvote 0 Downvote
Sorry for repost, here is a page you should find useful for testing out regular expresions, and creating your own. http://www.roblocher.com/technotes/regexp.aspx And some tips from Microsoft of course http://msdn.microsoft.com/en-us/library/ms998267.aspx