Creating DataView Objects in Microsoft Visual Studio

Creating a DataView object is much simpler than creating a DataTable. You don’t have to add columns and data types. You simply point the DataView at a DataTable and set the desired properties (RowFilter, RowStateFilter, Sort, and so on).

Adding a New DataView Object to Your Designer

With the release of Visual Studio 2005, the DataView is no longer on the Toolbox by default. However, you can right-click the Toolbox, select "Choose Items..." from the context menu, and then select DataView from the list of .NET Framework Components and it will once again appear on the Data tab of the Toolbox.

Once the DataView is available on the Toolbox, you can add a new DataView object to your designer by dragging ...

Get Programming Microsoft® ADO.NET 2.0 Core Reference, 2nd Edition 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.