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
340
XamDataGrid Custom Filter to show IDataErrors
posted

Does the XamDataGrid have any built-in support for filtering the records based on IDataError support?  If not, how would I go about writing a custom ICondition to make this work?  Basically, I would like to write 2 distinct filters.  One filters on rows in error, and the other filters on cells in error.  Thanks for any advice you may have.

Parents
  • 340
    Suggested Answer
    Offline posted

    Nevermind, I think I figured this out through inspection of the ConditionEvaluationContext parameter of the ICondition.IsMatch method.  It turns out that you can get the Cell object from the CondtionEvaluationContext.CurrentValue.Context.  And, of course, you can obtain the Record from the Cell object, so this was easier than I thought it would be.

Reply Children
No Data