4. Data Binding to Controls

In this chapter, we examine data binding, the ability to associate non-GUI objects that hold and maintain data with the controls that present and receive that data.

4.1 Data Binding

MOST CONTROLS, especially single-item and list-based controls, display and accept data. Most data, when it is not being displayed or modified within a control, is kept in a database. And we’re using the term database quite loosely here—loosely enough to include anything from a List to a SQL Server database. Because the data is kept in a database and because we need to display and modify it through the use of controls, we need a simple, consistent, property-oriented technique for moving data between our database and our controls. Data ...

Get Programming .NET Compact Framework 3.5 Second Edition 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.