Implementing Complex Binding

Simple data binding binds a simple-bound control to one field in the current record. You use simple binding with those controls that can display only one data item at a time, like text boxes or labels. Some controls, such as list boxes and data grids, however, can display multiple items at the same time, and you use complex data binding with those controls.

In fact, we've already seen complex binding at work when we started working with data grids. To bind a data grid to a table, you set the DataSource property of the data grid to an object like a dataset or data view, and its DataMember property to a table in that dataset or data view. The data grid will automatically display that entire table. As with data grids, ...

Get Microsoft® Visual C#® .NET 2003 Kick Start now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.