03.01.2015 Views

C# 5.0 Programmer's Reference

Visual Studio 2013 C# 5.0 Programmer's Reference

Visual Studio 2013 C# 5.0 Programmer's Reference

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Using Bound Controls ❘ 521<br />

tools it needs to modify the data. After you view the summary, click Finish to create<br />

the data adapter and close the wizard.<br />

e. Use the Properties window to change the new data adapter’s name to<br />

studentsDataAdapter.<br />

Figure 23-12: The Data Adapter Configuration Wizard’s<br />

summary screen tells you what the wizard will do when it<br />

creates a data adapter.<br />

4. Repeat the previous steps to create a data adapter for the TestScores table named<br />

testScoresDataAdapter.<br />

5. Add a DataSet to the form.<br />

a. Expand the Toolbox’s Data section and double-click the DataSet tool.<br />

b. On the Add Dataset dialog shown in Figure 23-13, click the “Typed dataset” option<br />

and select the DataSet type you created while making the original data source, and<br />

click OK.<br />

Figure 23-13: Use the Add Dataset dialog to create an<br />

instance of a DataSet.<br />

www.it-ebooks.info

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!