Creating DataView Objects in Visual Studio .NET
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
You can add a new DataView object to your designer by dragging the DataView item from the Data tab of the Visual Studio .NET Toolbox and dropping the item onto the designer or the component tray. You can also simply double-click the DataView item in the Toolbox.
Setting Properties of Your DataView Object
Once you've created your new DataView object, you'll want to set a few of its properties. Visual Studio .NET simplifies this process. As you can see in Figure 8-1, you can use the Properties window to select an available DataTable. You can also set other available properties of the DataView object, such as RowFilter, RowStateFilter, and Sort.
Figure 8-1
Setting properties of the DataView object in Visual Studio .NET
That's really all there is to it.