Murach's ADO.NET 3.5, LINQ,
and the Entity Framework with C# 2008

How to work with data sources and datasets

This chapter shows you how to use the ADO.NET data sources feature to quickly create your first database applications. To see how well this book works, you can download this chapter and try it out for yourself.

Chapter 3 How to work with data sources and datasets
How to create a data source 60
How to use the Data Sources window 60
How to start the Data Source Configuration Wizard 62
How to choose a data source type 62
How to choose the connection for a data source 64
How to create a connection to a database 66
How to save a connection string in the app.config file 68
How to choose database objects for a data source 70
The schema file created by the Data Source Configuration Wizard 72
How to use a data source 74
How to generate a DataGridView control from a data source 74
A Terms Maintenance application that uses a DataGridView control 76
How to change the controls associated with a data source 78
How to generate detail controls from a data source 80
A Vendor Maintenance application that uses TextBox controls 82
How to handle data errors 84
How to handle data provider errors 84
How to handle ADO.NET errors 86
How to handle data errors for a DataGridView control 88
How to use the Dataset Designer 90
How to view the schema for a dataset 90
How to preview the data for a query 92
How to interpret the generated SQL statements 94




Murach's ADO.NET 3.5 with C# 2008

Learn more about this book

View the table of contents


More about the eBook



Our 100% Guarantee

First, try our books for 90 days. Then, if you aren't completely convinced that our books are the best ones you've ever used, you can return them for a prompt refund...no questions asked.