I am using Visual Studio .Net 2003 and have a Windows Forms application. I have a strongly typed dataset on a form, and the controls on the form are bound through design mode to that dataset.
When I enter an invalid date in a control linked to a datetime field, no error is generated when I tab off of the control. The control simply reverts back to its previous value. Is this supposed to be the default behavior?
I realize I can use the validate event to test the data, but I thought it was unusual that the dataset itself did not generate an error. This brings up one more question. When using the validate event, it only fires when tabbing off of a control, not when I use the mouse to move to another control. Is there a way to change this behavior?
When I enter an invalid date in a control linked to a datetime field, no error is generated when I tab off of the control. The control simply reverts back to its previous value. Is this supposed to be the default behavior?
I realize I can use the validate event to test the data, but I thought it was unusual that the dataset itself did not generate an error. This brings up one more question. When using the validate event, it only fires when tabbing off of a control, not when I use the mouse to move to another control. Is there a way to change this behavior?