










































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
The advance computer programming may not be a piece of cake for every one, but these slides really help you to understand the concept of the programming.Databases Two, Familiar, Retrieve Database, Dataadapter Classes, Sql Query Statements, Language-Integrated, Expressions, Development, Populate Dataset Objects, Develop Data-Bound
Typology: Slides
1 / 50
This page cannot be seen from the preview
Don't miss anything!











































C# Programming: From Problem Analysis to Program Design 3 rd^ Edition
Part II
Placing DataGridView Control
Figure 14-15 DataGridView control placed on form
Added benefit: DataSet, BindingNavigator, AdapterManager, TableAdapter, and BindingSource objects automatically instantiated
Table dragged from Data Sources window to the form; DataGridView Control created
Component Tray
Customize the DataGridView Object
Use smart tag
Figure 14-16 Customizing the DataGridView control
Formatting DataGridView Cells
Figure 14-19 Formatting DataGridView cells
Customize the DataGridView Object
( continued )
BindingNavigator Control
BindingNavigator Control
(continued )
Figure 14-20 BindingNavigator and BindingSource objects
TableAdapterManager
private void studentBindingNavigatorSaveItem_Click (object sender, EventArgs e) { this.Validate( ); this.studentBindingSource.EndEdit( ); this.tableAdapterManager.UpdateAll (this.studentDataBaseDataSet.Student); }
TableAdapters
Dataset Designer (continued)
Figure 14-21 Dataset Designer opened
TableAdapter object
Reviewing the TableAdapter's
Command Properties
Figure 14-22 Updating the SelectCommand
Clicking in the value box beside the UpdateCommand property reveals New
Query Builder ( continued )
Query Builder ( continued )
Figure 14-23 Identify the Table for the Update