Presentation is loading. Please wait.

Presentation is loading. Please wait.

Windows Database Applications CIS 341 Chapter 5. Objectives Update database Navigate records Event handler Bound control maintenance Update data source.

Similar presentations


Presentation on theme: "Windows Database Applications CIS 341 Chapter 5. Objectives Update database Navigate records Event handler Bound control maintenance Update data source."— Presentation transcript:

1 Windows Database Applications CIS 341 Chapter 5

2 Objectives Update database Navigate records Event handler Bound control maintenance Update data source Sequence updates

3 Data Objects DB (original) Data Adapter Dataset Retrieve Update data Create dataset & save updates

4 Data Grid Format Data Table (0) Data Rows Collection Data Row (0) Data Row (1) Data Tables Collection Data Set

5 RowState property DataRowState EnumPurpose AddedIndicated a new row DeletedMarked for deletion DetachedNot part of a collection ModifiedChanges made to row UnchangedOriginal row values

6 Change Management Edit Methods DataRow Versions AcceptChanges method RejectChanges method

7 Update Data Adapter Update Method At every change or program termination? Or Combination of techniques Data is a Grid Edit Mode EndEdit and CancelEdit

8 Menu Options to Update Binding Context BindingManagerBase Data Table 1 Data Table 2 BindingManagerBase Data-bound Form


Download ppt "Windows Database Applications CIS 341 Chapter 5. Objectives Update database Navigate records Event handler Bound control maintenance Update data source."

Similar presentations


Ads by Google