This topic has not yet been rated - Rate this topic

DataSourceProvider.DataChanged Event

Occurs when the Data property has a new value.

Namespace:  System.Windows.Data
Assembly:  WindowsBase (in WindowsBase.dll)
XMLNS for XAML: Not mapped to an xmlns.
public event EventHandler DataChanged
<object DataChanged="EventHandler" .../>

Notes to implementers: Raise this event when a new data object becomes available on the Data property.

.NET Framework

Supported in: 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
Also fires for exceptions, at least for ObjectDataProvider
I find this event also fires (in the ObjectDataSource class anyway) if an exception occurs while fetching the data object. This is the only way I have found to determine when an error occurs, so I can retreive it from the Error property.

You'd expect PropertyChanged to work for this, but it's not public.