Microsoft® .NET Compact Framework (Core Reference)
by Andy Wigley, Stephen Wheelwright, Robert Burbidge, Rory MacLoed, Mark Sutton
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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access