6.3. Using Databound Controls
Both Windows Forms and ASP.NET Web Forms support a data binding architecture. As in past APIs, such as the OLE DB data control architecture, data binding is defined as part of the control architecture in .NET. The major data binding improvement is an increase in the number of classes that can bind data. In Visual Basic 6, for example, a DataSource property must point to an actual data access component, usually a Recordset; in .NET data binding, any data can be used. Using DataTable (the .NET equivalent of Recordset) is certainly permitted, but simpler classes (such as arrays) are also supported. The other major change is that when you use the disconnected model, .NET disallows “live” database updates and the locking ...
Get Essential ADO.NET 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.