Retrieves the named data source view that is associated with the data source control.
Assembly: System.Web (in System.Web.dll)
The specified viewName is null or something other than DefaultView.
The ObjectDataSource control supports only one data source view. As with all data source view objects, the ObjectDataSourceView that is associated with the data source control defines its capabilities, performs all the work that is necessary to retrieve data from the underlying data storage, and performs operations such as sorting, inserting, deleting, and updating.
The method is intended to be called by data-bound controls, not by page code.