O'Reilly logo

Visual Basic® .NET Database Programming by Rod Stephens

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

DataView

A DataView object provides a view into a subset of the rows contained in a DataTable. DataView properties let you select rows with a certain state (added, deleted, modified, and so forth) or with certain data values.

A program can use more than one DataView attached to the same DataTable to provide different views of the data. DataViews can act as data sources for bound controls so they make displaying various selections of the data easy.

Example program DataViews, shown in Figure 5.9, uses a DataTable and three DataViews to easily display records in different states. If you add, modify, and delete records in the first DataGrid control, the others show the records that are added, modified, and deleted. This program sets the DataView ...

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