DateTimePicker Issue.

  • Thread starter Thread starter Manuel Canas
  • Start date Start date
M

Manuel Canas

Hi There,

I'm having this problem with a DateTimePicker and I just can't figure it
out.

I'm using binding on a form. I'm binding all the object on the graphical
properties, I have created a data adapter and dataset as well, all that has
been done with working ok.

New I call the AddNew() method everything goes well, I get new rows and
everything is good and fun. When I want to save this calling the UpDate on
the Data Adapter, I get a sqlexception saying that cannot insert a null
value on a column, which I've set to not to accept null values and that's
good cause it's trapping that one.

Now, it seems that on the AddNew my datetimepicker is being reset with null,
and I just don't can't find out why is doing this.

Any suggestions, advices, ideas??

Thanks very much.

Manuel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top