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
570
Invalid Date Value in Grid
posted

I am having some problems with a grid I am creating. On this grid, of type UltraGrid, I have several columns, but there are two particular ones that are resulting in problems for me.

  1. Column called EndDate that has a style of Date. 
  2. Column called Delete that has a style of Button

The problem that occurs is when the user enters the EndDate field and specifies an invalid date (such as 2/31/2008). Then after specifing this invalid value they click on Delete column for that row. When I click on the Delete Column is when I get some unusual behaviors that are causing problems start. When I click on the Delete button if fires the OnCellDataError Event, followed by the OnCellClick Event, followed by another calling of the OnCellDataError Event. This results in two error messages coming up before the user is asked to confirm the deletion of the row.

Is there any way to either prevent the user from clicking the delete column if there is an error in the EndDate Column or a way to prevent the error message from coming up when the user deletes the column?

Parents Reply Children
No Data