DataGrid.DataError Event

Occurs when an external data-parsing or validation operation throws an exception, or when an attempt to commit data to a data source fails.

Namespace:  System.Windows.Controls
Assembly:  System.Windows.Controls.Data (in System.Windows.Controls.Data.dll)
XMLNS for XAML: Not mapped to an xmlns.

Syntax

'Declaration
Public Event DataError As EventHandler(Of DataGridDataErrorEventArgs)
'Usage
Dim instance As DataGrid
Dim handler As EventHandler(Of DataGridDataErrorEventArgs)

AddHandler instance.DataError, handler
public event EventHandler<DataGridDataErrorEventArgs> DataError
public:
 event EventHandler<DataGridDataErrorEventArgs^>^ DataError {
    void add (EventHandler<DataGridDataErrorEventArgs^>^ value);
    void remove (EventHandler<DataGridDataErrorEventArgs^>^ value);
}
JScript does not support events.
<swcd:DataGrid DataError="eventhandler"/>
swcd:
                    A prefix that is defined to map the XML namespace for the System.Windows.Controls.Data assembly and the System.Windows.Controls CLR namespace.
                

Remarks

The DataError event enables you to handle exceptions thrown by the data source during data processing operations.

See Also

Reference

DataGrid Class

DataGrid Members

System.Windows.Controls Namespace

DataGridDataErrorEventArgs

Other Resources

DataGrid