Hello all,
I'm using the BeforeRowDeactivate event to check if all the mandatory cells of the row have values or not.
I at least one mandatory cell has no value, then I set the ColumnError of the cell and the RowError of the DataRow.
Also I use e.Cancel = True to prevent the user to go to another line...
The problem that I have is that the error indicators (!) are not drawn immediately (for example after the user clicks on another row) but only when the user hover the mouse over the cell(s) with the errors.
I also tried the .ActiveRow.Refresh() method with no result...
Also I would like to ask if there is another more convenient way to implement such a behavior.
Thanks in advance,
Boltsis Panagiotis
You can sometimes force a redraw of the control by calling UltraGrid.DisplayLayout.UIElement.DirtyChildElements followed by UltraGrid.Update.