Simple Binding to a DataSet

Binding of all sorts of controls is an important feature of .NET. Databound controls are available in Windows Forms, WebForms, and ASP.NET. All these controls can use ADO.NET to bind to database tables either on the local machine or somewhere else on the network. The vehicle for database binding is the DataSet. This class represents a set of cached data that is held in memory. The data cache can be created manually or populated with data drawn from a database using ADO.NET's database connection system. After the information is in that memory store on your machine, you can bind controls to individual columns of data and select rows for editing or viewing.

The easiest way to understand a DataSet is to use it. Listing ...

Get C# and the .NET Framework: The C++ Perspective 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.