Advanced Data Topics

There are many other ways to use ADO.NET to work with data and process updates. Earlier in this chapter, you learned how to use the DataReader to read through a result set. The chapter also covered retrieving data into a DataTable, but if you want to find a subset of data in the DataTable, you have to write some looping code. The DataView class is designed to take care of this.

DataView

The DataView is exactly what it sounds like. It is a view of data, specifically a view of the data in a DataTable. You can have any number of views against the same DataTable, and each one can have its own filter and sort specified. When you specify a DataTable as the source for data binding, you are actually binding to the DataView, the ...

Get Microsoft® Visual Basic® .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.