O'Reilly logo

Microsoft® .NET Compact Framework (Core Reference) by Mark Sutton, Rory MacLoed, Robert Burbidge, Stephen Wheelwright, Andy Wigley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Binding Data

You can achieve fast development of a user interface that manipulates data by taking advantage of data binding. Data binding allows a control to automatically display data from a DataSet object and transfer changes back into the DataSet object. The next sample looks in detail at retrieving data from a single table in a SQL Server data source into a DataTable object inside a DataSet object, and then it binds the table to some controls for display. We will discuss how to update data in the section "Updating Data" later in this chapter.

Figure 15-6 shows the application running. You’ll find the code for this application, BindingSQLDataSample, included with this book’s sample files. BindingSQLDataSample displays three columns from the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required