Validating a textbox within the gridview
-
Hello, In my application i am having a datagridview. And in that datagridview one of the column is textbox. I like to validate the textbox so that only numbers to be entered into the textbox. And on clicking the button a dialog box with error messesge to be displayed if any other is entered into the textbox beyond the number. plz, help me in doing this...... Thanks in advance :)
-
Hello, In my application i am having a datagridview. And in that datagridview one of the column is textbox. I like to validate the textbox so that only numbers to be entered into the textbox. And on clicking the button a dialog box with error messesge to be displayed if any other is entered into the textbox beyond the number. plz, help me in doing this...... Thanks in advance :)
Handle the
CellValidating
orCellValidated
events of theDataGridView
. Look them up on MSDN for examples.Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”