windows database applications cis 341 chapter 4. objectives related tables format data grid parent...
TRANSCRIPT
Windows Database Applications
CIS 341 Chapter 4
Objectives
Related tablesFormat Data GridParent retrievalChild retrievalBound and unbound controls
Data Relationships
One-to-many (1:M)One-to-one (1:1) Many-to-many (M:N)
Many-to-many (M:N)
student coursestu1 John class1 Math stu2 Mary class2 English
student stu_course courseStu1 Mary stu1 class1 class1 MathStu2 John stu1 class2 class2
Englishstu2 class1stu2 class2
Grid Related Tables
Dataset creationRelationship
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 tablesRelationshipDataset for combo box
Unbound
Parent / Child recordsRetrieve a selected parent rowRetrieve an array of matching child rowsReference fields in the selected rows
Data Grid Format
Data Table
Data Rows Collection
Data Row (0)
Data Row (1)
Retrieve Parent Row