Implementing Simple Data Binding

Some controls, like text boxes and labels, are simple-bound controls, and some, like data grids and list boxes, are complex-bound controls. Simple binding binds one, and only one, data field to a simple-bound control. For example, you can see a text box at upper right in the ch09_05 example, Figure 9.25, which is simple bound to the au_lname field in the authors table. Actually, it's bound to the au_lname field of the current record, as set by the binding context in the form. When you click a navigation button at the bottom of the ch09_05 example, the current record in the binding context changes, and the text box will display the au_lname field of the new current record.

Let's put this example together. To access ...

Get Microsoft® Visual C#® .NET 2003 Kick Start 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.