IDataSource.GetView Method (String)
Gets the named data source view associated with the data source control.
Assembly: System.Web (in System.Web.dll)
Data source control classes can support one or more views on their underlying data. These views are represented by instances of the DataSourceView class. The data source view defines the capabilities of a data source control, and performs all the work necessary to retrieve data from the underlying data store and perform operations such as sorting, inserting, deleting, and updating.
Data source control classes that implement the IDataSource interface implement the method to return strongly typed view objects associated with the class.
The following code example demonstrates how a data source control class that implements the IDataSource interface implements the method, returning a strongly typed instance of the DataSourceView class. Because the data source control supports only one view, it ignores the name and returns a view named with the default view name. This code example is part of a larger example provided for the DataSourceControl class.
Available since 2.0