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
760
Validation in UnboundField
posted

Hello,

I am creating the grid dynamically in code and filling its values manually as well. My business object support IDataErrorInfo but that does not work, I don't expect it to work because the grid is not bound to anything. However, I want to manually check the business object and show the validation icon (*) in the cell.

In other words I want to manually show/hide the validation error icon in a cell. I would prefer not to create my own style and want to re-use the validation icon style that comes with v9.2 of the grid.

Help much appreciated.

Thank you

Tahir

Parents
No Data
Reply
  • 69686
    posted

    Tahir,

    I spoke with the QA team about this.

    In order to get visualization of the IDataErrorInfo of an UnboundField, first you have to enable it and add value constraints for the editor of that field (you can do that with a style for the editor and setting the ValueConstraint property). Once you have the ValueConstrain set, the IDataErrorInfo support will pick that up and visualize it.

    Let me know if you have questions on this.

Children