Version

GetCellDataError Method

Returns the field has data error as indicated by the underlying data item's IDataErrorInfo implementation.
Syntax
'Declaration
 
Public Function GetCellDataError( _
   ByVal field As Field _
) As Object
public object GetCellDataError( 
   Field field
)

Parameters

field
Remarks

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 method returns the field error if any - basically the value returned by the IDataErrorInfo's Item[fieldName] indexer.

Note that the corresponding GetCellHasDataError method returns the value indicating whether there's a data error on the field.

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.

Requirements

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