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
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.
The error icon shows when I follow the steps (i.e. adding ValueConstraint) as you suggest. However, I am not able to display the error as returned by the this[string columnname] method of IDataErrorInfo interface. The method is still not called.