Windows Database Applications CIS 341 Chapter 4
Objectives Related tables Format Data Grid Parent retrieval Child retrieval Bound and unbound controls
Data Relationships One-to-many (1:M) One-to-one (1:1) Many-to-many (M:N)
studentcourse stu1 Johnclass1 Math stu2 Mary class2 English studentstu_coursecourse Stu1 Marystu1class1class1 Math Stu2 Johnstu1 class2class2 English stu2class1 stu2 class2
Grid Related Tables Dataset creation Relationship
Data Grid Format Data Grid Data Table Styles Collection Data Grid Table Style Data Grid Column Style Grid Column Styles Collection
Parent / Child records Dataset for both tables Relationship Dataset for combo box
Unbound Parent / Child records Retrieve a selected parent row Retrieve an array of matching child rows Reference fields in the selected rows
Data Grid Format Data Table Data Rows Collection Data Row (0) Data Row (1)
Retrieve Parent Row