O'Reilly logo

Programming Microsoft® ADO.NET 2.0 Core Reference, 2nd Edition by David Sceppa

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

What Is a DataView Object?

The DataTable class’s Select method is powerful and flexible, but it’s not always the best solution. It has two major limitations. First, because it accepts such dynamic search criteria, it’s not terribly efficient. Also, neither Windows nor Web forms support binding to the Select method’s return value—an array of DataRow objects. The ADO.NET solution to both limitations is the DataView class.

The ADO.NET DataTable class is roughly equivalent to a table in a database, so you might assume that the DataView class is similar to a view in a database. Although there are some similarities between DataView objects and views in a database, they are not as closely related as DataTable objects and tables in a database are.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required