I am composing a datetime picture control on my dataset (which is connected to the database). However, as long as the user changes the date of that control, the dataset is going to zero for that entry (even if the value of the control is not zero). I have done a little bit of Googling, and there are so many things about people who do not support zero values with DateTimePicker, however, I do not want it to support a zero value. The column of my database table is set to "NOT NULL" It seems that the dataset is not automatically updating with the datetime picture control until the user changes the date.
I have tried to clearly set the date for the control in the code (using DateTimePicker.Value = DateTime.Now)). It still does not update the dataset side.
Thanks for any help, donation.
Sorry, I had a lovely moment! There was no default value set in the database table!
Comments
Post a Comment