We have IDataErrorInfo notification set up and working for individual cells within our grid. However, we have encountered one small problem. Rather than using the built-in AddNewRow of the UltraGrid, we have a button outside the grid that enables the user to add rows. Before allowing an add, we ensure that the currently edited row, if any, is valid by calling Update() and checking that its return status is true. This triggers validation and would normally result in the appropriate error notification icons being displayed in each cell. In our case, the icons do not appear until the user hovers their mouse cursor over each erroneous cell, apparently because the row is not "focused" when the create button is clicked. Is there anyway to manually tell UltraGrid to display all error notifications for a given row? The behavior of needing the user to hover over the cells to know they caused errors is confusing!
Hi,
That sounds like a bug to me. The grid should be refreshing automatically, you should not have to do anything to get the error icons to show up.
If you are not already using the latest Hot Fix, I recommend that you download it and see if the issue is already fixed. If not, you should Submit an incident to Infragistics Developer Support.
You might be able to work around the isse issue by calling grid.DisplayLayout.UIElement.DirtyChildElements().
OK, well DirtyChildElements() did not work, but along those same lines, I called grid.Refresh() and that did work.Thanks!
Oh, okay. I'm glad you found a workaround. But I'd like to reiterate that you should not have to do this, it should work automatically. So you should still report the issue to Infragistics Developer Support so they can get it fixed. :)