Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

No error generated when incorrect data type fed to Dataset

Status
Not open for further replies.

Manch

Programmer
Jun 12, 2001
43
0
0
US
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?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top