Assembly: System.Web (in system.web.dll)
Return ValueReturns the named DataSourceView associated with the DataSourceControl.
You can enumerate through the set of views currently associated with the data source control by calling the GetViewNames method.
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, does all the work necessary to retrieve data from the underlying data store, and performs operations such as sorting, inserting, deleting, and updating.
The DataSourceControl class's default implementation returns a null reference (Nothing in Visual Basic). If you extend the DataSourceControl class, override the GetView method to return the specified DataSourceView object.
The following code example demonstrates how a data source control class that extends the DataSourceControl class implements the GetView 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.