System.Web
2.0.0.0
ASP.NET supports a control 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 implement the interface when you want to implement your own custom ASP.NET data source control.
Any class that implements the interface is a data source control. The interface serves as the foundation for all ASP.NET data source controls and defines one of the fundamental data-binding architecture concepts with its two methods: the method and the method. This concept is that all data source controls support one or more named views on their data. The data source view object is similar to the abstraction in the namespace: a data-bindable, customized view of data for sorting, filtering, and other data operations that the view defines. At its core, a data source control does nothing more than retrieve views on data.
A data source control can have one or more associated data source view objects. Some data source controls, including those that represent relational databases such as and , support only one view. Other data source controls, including hierarchical data source controls such as , support many views. The data source view defines the capabilities of a data source and the operations that it supports.
In summary, data source controls implement the interface, support one or more named views on the data they represent, and always support data retrieval from the data source they represent. Data source controls always retrieve data on demand, such as when DataBind is called on a data bound control.
Represents an abstract data source that data-bound controls bind to.
Event
System.EventHandler
The event is raised when the properties of a data-bound control or the underlying data has changed in some way that affects the data bindings between a data-bound control and its data. For example, the event is raised if a file name property, such as the property, is changed on a file-based data source control.
For more information about handling events, see Consuming Events.
Occurs when a data source control has changed in some way that affects data-bound controls.
2.0.0.0
Method
System.Web.UI.DataSourceView
Data source control classes can support one or more views on their underlying data. These views are represented by instances of the 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 interface implement the method to return strongly typed view objects associated with the class.
Gets the named data source view associated with the data source control.
Returns the named associated with the .
The name of the view to retrieve.
2.0.0.0
Method
System.Collections.ICollection
Data source control classes can support one or more named views on their underlying data. The method returns a collection of view names currently associated with the data source control instance. Callers can iterate through the collection of view names and retrieve individual objects with the method.
Data source control classes that implement the interface implement the method to return a collection of names that represents all the data source view objects currently associated with the data source control class.
Gets a collection of names representing the list of view objects associated with the interface.
An that contains the names of the views associated with the .
2.0.0.0