DataError Property (Cell)

Returns the field data error as indicated by the underlying data item's IDataErrorInfo implementation.
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 the data record implements IDataErrorInfo, this property returns the field error if any for this cell - basically the value returned by the IDataErrorInfo's Item[fieldName] indexer.

Note that the corresponding HasDataError property returns the value indicating whether there's a data error on this cell.

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