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
95
ColumnError & RowError not immediately displayed
posted

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

Parents
No Data
Reply
  • 69832
    Offline posted

    You can sometimes force a redraw of the control by calling UltraGrid.DisplayLayout.UIElement.DirtyChildElements followed by UltraGrid.Update.

Children
No Data