Chapter 29DataSets and DataBinding

Wrox.com Code Downloads for this Chapter

The wrox.com code downloads for this chapter are found at www.wrox.com/go/professionalvisualstudio2015 on the Download Code tab. The code and any related support files are located in their own folder for this chapter.

A large proportion of applications use some form of data storage. This might be in the form of serialized objects or XML data, but for long-term storage that supports concurrent access by a large number of users, most applications use a database. The .NET Framework includes strong support for working with databases and other data sources. This chapter examines how to use DataSets to build applications that work with data from a database.

In the second part of this chapter, you see how to use DataBinding to connect visual controls to the data they display. You see how they interact and how you can use the designers to control how data displays.

The examples in this chapter are based on the sample AdventureWorks2014 database available as a download from http://msftdbprodsamples.codeplex.com.

DataSets Overview

The .NET Framework DataSet is a complex object approximately equivalent to an in-memory representation of a database. It contains ...

Get Professional Visual Studio 2015 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.