DataError Property (DataRecord)

Returns the data error associated with the underlying data item (IDataErrorInfo's Error property).
Public ReadOnly Property DataError As Object
public object DataError {get;}

A data item can provide error information regarding the data item and individual fields of the data item by implementing IDataErrorInfo interface. If the data item associated with this record implements IDataErrorInfo, this property returns the data item error - the value returned by the IDataErrorInfo's Error property.

Note that the corresponding HasDataError property returns the value indicating whether the data item has a data error.

Also Note that by default the data presenter doesn't display the data error information. To have the data presenter display the data error information, set the FieldLayoutSettings' FieldLayoutSettings.SupportDataErrorInfo property.


Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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

See Also