/// MultiTables DataGrid example illustrates:
///
/// - 4 DataTable collections
///
/// - Profs(pid, name, office)
///
- Students(sid, name, major)
///
- Section(snum, prof-ID, student-ID, class)
///
- DeptFaculty(dept, profID)
///
/// - 3 Relation collections
///
/// - teaches: Section.prof-ID --> Profs.pid
///
- attends: Section.student-ID --> Studenst.sid
///
- memberOf: Profs.pid --> DeptFaculty.profID
///
///
///
/// The DataTables and DataRelations are specified using Designer.
/// They are the
/// properties of the DataSet Semester.
///
public class MultiTables : System.Windows.Forms.Form
{
private System.Data.DataSet Semester;
private System.Data.DataTable Profs;
private System.Data.DataTable students;
private System.Data.DataTable section;
private System.Windows.Forms.DataGrid dataGrid1;
private System.Data.DataView dataView1;
private System.Data.DataColumn pid;
private System.Data.DataColumn profName;
private System.Data.DataColumn office;
private System.Data.DataColumn sid;
private System.Data.DataColumn studentName;
private System.Data.DataColumn major;
private System.Data.DataColumn sectionNumber;
private System.Data.DataColumn professorID;
private System.Data.DataColumn studentID;
private System.Data.DataColumn className;
private System.Data.DataTable deptFaculty;
private System.Data.DataColumn dept;
private System.Data.DataColumn profID;
///