Windows Database Applications CIS 341 Chapter 5
Objectives Update database Navigate records Event handler Bound control maintenance Update data source Sequence updates
Data Objects DB (original) Data Adapter Dataset Retrieve Update data Create dataset & save updates
Data Grid Format Data Table (0) Data Rows Collection Data Row (0) Data Row (1) Data Tables Collection Data Set
RowState property DataRowState EnumPurpose AddedIndicated a new row DeletedMarked for deletion DetachedNot part of a collection ModifiedChanges made to row UnchangedOriginal row values
Change Management Edit Methods DataRow Versions AcceptChanges method RejectChanges method
Update Data Adapter Update Method At every change or program termination? Or Combination of techniques Data is a Grid Edit Mode EndEdit and CancelEdit
Menu Options to Update Binding Context BindingManagerBase Data Table 1 Data Table 2 BindingManagerBase Data-bound Form