Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
70
CellValuePresenter DataError Custom object
posted

Does the DataError property only support string type errors?

I'm trying to customise it to support different kinds of error levels and I need this DataError property to return an object instead of a string.

  • 6080
    Offline posted

    Hello Anthony,

    CellValuePresenter DataError property returns the associated Field's DataError as an object. A DataError can provide error information regarding the 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 - the value returned by the IDataErrorInfo's Item[fieldName] indexer.

    Based on the underlying data item’s IDataErrorInfo implementation, GetCellDataError(Field) method returns the DataError object of the specific field that was passed into it as input parameter.

    Please let me know if you have any questions.