Sample: Using A Strongly Typed Data Source in .NET [Exercise] | Posted at 1:40 PM
From my IDSC 3102: Intermediate Programming class, here is the second program we had to complete. It was a simple Database connection project, but I used and played with a strongly typed dataset.
What It Is
A grading program that allows you to input grades for a select number of students, save changes to the DB, and view a semester report. The report should show a list of students and their cumulative semester average calculated using a specific formula. It should also display a "printable list" for your students to view their grades, showing only the last 4 digits of their SSN.
What You Will Learn
- How to set up and utilize a typed DataSource (DataSet.xsd)
- Dynamically save any changes from a DataGridView to its underlying Datasource
- Validate and prevent data entry errors
- Set up a Mask (i.e. ***-**-1234 for a social security number) for a column on a DataGridView control
Download zip (165KB)