Sample Solutions

Tags:

Project Summary

A collection of various sample programs or code snippets that are standalone or part of articles/tutorials.

Using Strongly-Typed Datasets in .NET

This 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) with Microsoft Access
  • 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

License

All samples are distributed under the GPL license. If you make any improvements, please let us know so we can update the source code!

Program screenshot
Screenshot of the strongly-typed dataset sample program

An error has occured while trying to process your request. Hide