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
145
Customized validation required
posted

We have a bound column of data type DateTime. When user enters an invalid date and clicks anywhere else, the grid tries to validate the date-time field and throws a message saying "Unable to update the data value" (as seen below). But we want our own customized message (message box with customized title, text and icon) to pop up.

Can you please guide us on this.

 Thanks in advance.

Parents
No Data
Reply
  • 3707
    posted

    Take a look at the CellDataError event that gets fired. Inside the local help file they include a sample that looks like this:

    private void ultraGrid1_CellDataError(object sender, 
      Infragistics.Win.UltraWinGrid.CellDataErrorEventArgs e)
    {
    	// Prevent the message box from displaying.
    	e.RaiseErrorEvent = false;
    
    	// Revert back to the original value.
    	e.RestoreOriginalValue = true;
    
    	// Stay in the same cell.
    	e.StayInEditMode = true;
    }
Children
No Data