|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Datagrid Issue - Limit to numeric input?I have a windows form that contains two datagrids (framework 2.0/).
I would like to limit two of the columns to numeric entries only. IE If the user types a letter or anything other than 0123456789. then I want to supress the key. I have tried turning on keypreview on the form (I'm using this method to limit entries in other textboxes/controls) but this method does not capture the keys once the datagrid goes into "edit mode". Ideas on how to do this would be great. BTW: When you set the format option of the datgrid column to format for numeric, it still allows the end user to type alpha characters (a-z). Thanks Rick |
|||||||||||||||||||||||