Handling Data Binding
Binding data to controls in Windows and Web forms is a big topic in .NET programming. So big that Microsoft has made all Windows controls data-aware, which means you can bind them to data sources. For example, you might bind the au_lname field from the authors table to a text box. At runtime, the current author's last name will appear in that text box. Or you might bind the au_id field to a list box, which will make all the author IDs appear in the list box. Or you might bind the whole authors table to a data grid.
You can bind any property of any control to a data source, and we're going to see how that works here. After binding a dataset or data view to controls in a form, you can navigate through the data in that dataset ...
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.