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
215
Reset DataErrorInfo.RowError
posted

I'm using a bound UltraWinGrid to perform table data table entry.

I capture the dg_Error(object sender, ErrorEventArgs e) event to set a RowError msg string if the user tries to create a row with a duplicate key. However, after they correct the information and successfully add a new row to the dg and bound dt, the new row gets inserted showing the RowError msg I created in the dg_Error event.

What event should I use to clear the RowError msg on a new row or an updated row that previously had an error?

Parents
  • 469350
    Verified Answer
    Offline posted

    Hi Rob,

    This is a tricky question to answer without seeing it in action. Off the top of my head, the AfterRowUpdate event seems like a reasonable choice. This event fires after the row has been committed to the underlying data source. So by that point, you can be sure that it can't possible have a duplicate key.

Reply Children