Raises the DataSourceChanged event.
Assembly: System.Web (in System.Web.dll)
The method notifies a data-bound control that the underlying data source or the data cached in memory has changed, and that the control should rebind and perform any necessary additional work. Typically, the method is called when a property of the data source control or a parameter value has changed.
Raising an event invokes the event handler through a delegate. For more information, see Raising an Event.Notes to Inheritors
When overriding in a derived class, be sure to call the base class's method so that registered delegates receive the event.
The following code example demonstrates how to call the method when a data source or its underlying data has changed in a way that might affect any bound controls. In this example, a file-based data source control that extends the DataSourceControl class raises the DataSourceChanged event by calling any time the FileName property is changed.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2