This Microsoft Visual Studio DATAGRIDVIEWS exercise is provided to allow potential course delegates to assess their suitability for the Wise Owl VISUAL C# 2005 WINDOWS FORMS course only, and may not be reproduced in whole or in part in any format without the prior written consent of Wise Owl.
A full answer to this exercise is provided as part of the training course!
| 1) | Create a new form called frmApplicant. |
| 2) | Create a new datagridview showing a list of mortgage applicants (you must have done the exercise to create an SQL Server Express mortgage database first): |
Note that the mortgage amount is right aligned, but indented from the left - can you make this work?
|
|
| 3) | Add validation using any method you like such that when the user enters an invalid amount, an error appears and they can't leave the cell: |
LOTS is not a valid amount - hence the error
|
|
| 4) | Change your code so that a little glyph appears next to the offending row when an error occurs: |
What you are aiming for
|
|
| 5) | Close down any forms that you have open. |
Thank you for showing an interest in this Visual C# 2005 Windows Forms training course! As mentioned above, full answers to this and other exercises are provided on the course. On all Wise Owl scheduled courses delegates can take away these model answers (together with their own efforts!) on a free USB stick.
Recommended sites: C# corner | Computer tutorials | Training classes