Serves as the base class for all data source view classes, which define the capabilities of data source controls.
See Also: DataSourceView Members
ASP.NET supports a data-binding architecture that enables Web server controls to bind to data in a consistent fashion. Web server controls that bind to data are referred to as data-bound controls, and the classes that facilitate that binding are called data source controls. Data source controls can represent any data source: a relational database, a file, a stream, a business object, and so on. Data source controls present data in a consistent way to data-bound controls, regardless of the source or format of the underlying data.
You use the data source controls that are provided with ASP.NET, including System.Web.UI.WebControls.SqlDataSource, System.Web.UI.WebControls.AccessDataSource, and System.Web.UI.WebControls.XmlDataSource, to perform most Web development tasks. You use the base System.Web.UI.DataSourceControl and System.Web.UI.DataSourceView classes when you want to implement your own custom data source control.
You can think of a data source control as the combination of the System.Web.UI.IDataSource object and its associated lists of data, called data source views. Each list of data is represented by a System.Web.UI.DataSourceView object. The System.Web.UI.DataSourceView class is the base class for all data source views, or lists of data, associated with data source controls. Data source views define the capabilities of a data source control. Because the underlying data storage contains one or more lists of data, a data source control is always associated with one or more named data source views. The data source control uses the DataSourceControl.GetViewNames method to enumerate the data source views currently associated with the data source control and the DataSourceControl.GetView(string) method to retrieve a specific data source view instance by name.
All System.Web.UI.DataSourceView objects support data retrieval from the underlying data source using the DataSourceView.ExecuteSelect(DataSourceSelectArguments) method. All views optionally support a basic set of operations, including operations such as DataSourceView.ExecuteInsert(IDictionary), DataSourceView.ExecuteUpdate(IDictionary, IDictionary, IDictionary), and DataSourceView.ExecuteDelete(IDictionary, IDictionary). A data-bound control can discover the capabilities of a data source control by retrieving an associated data source view using the DataSourceControl.GetView(string) and DataSourceControl.GetViewNames methods, and by querying the view at design time or run time.