Validating event in vb net

To String, "Grade Calculator", "Enter Grade") If str_input Grade = String. Show("Nothing entered" & vb New Line & "Please enter a grade", "Error", Message Box Buttons. Information) Else If Not Is Numeric(str_input Grade) Then Message Box.

Show( "Input is not a numeric grade" & vb New Line & "Please enter a numeric grade", "Error", Message Box Buttons. Information) Else dec_grade = CDec(str_input Grade) If dec_grade It works, but the code is "brittle".

Microsoft is conducting an online survey to understand your opinion of the Msdn Web site.

If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.

Its not permissible to have the two selected to true, but they can both be false.

I wrote code in the cellvalidating event as follows. Data Grid View Cell Validating Eve nt Args) Handles Datagrid1.

That's a term used for code that breaks easily whan anything is changed. For example, once you get into the loop, the only way to get out again is to cancel the program - not a very satisfactory user experience.

Text Box Friend With Events txt Last Name As System.

Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose.

Please refer to the Dev Website Terms of Use for more information.

I need to check that only one of the two can be checked.

Its just that my UI does not respond correctly and I can't expect my users to get out of it that way. Bob "Bob" In a datagridview (vs2005, I have two columns that are checkboxes.