DateTimePicker and DataBinding problem.

K

Kevin

hi.All

I am having problem with date field binding to a DateTimePicker.
I have looked and try several so called *solutions* on the net,
they all don't work for me. they either don't set the check state
properly or once changed from uncheck to checked, it will never
go back to unchecked even when date is not null.

I have try to use my own custom formater and parser for getting
and setting the picker value, it seems to work, but with several
dateTimePickers in one form, it seems that the runtime couldn't
process the formeter and parser routine fast enough to update
the UI, so that some of the picker UI won't get updated.

dosen't anyone have a good solution to this?

thx

Kevin
 
G

Guest

I don't know if this will solve your problem. I had difficulties myself with binding datetimepickers. I posted here without an answer. My problem was the value wouldn't show in the dtp control. Finally out of desperation I changed the binding from value to text on my two dtps, and the values showed and the form worked completely properly. Database updated

polynomial5

----- Kevin wrote: ----

hi.Al

I am having problem with date field binding to a DateTimePicker
I have looked and try several so called *solutions* on the net
they all don't work for me. they either don't set the check stat
properly or once changed from uncheck to checked, it will neve
go back to unchecked even when date is not null

I have try to use my own custom formater and parser for gettin
and setting the picker value, it seems to work, but with severa
dateTimePickers in one form, it seems that the runtime couldn'
process the formeter and parser routine fast enough to updat
the UI, so that some of the picker UI won't get updated

dosen't anyone have a good solution to this

th

Kevi
 
K

Kevin

polynomial5d

thanks for the response. but unfortunatly it doesn't work for me. because
binding to the text will just display the value
and yes it will update the changed value, but it can't set DBNull when
unchecked the checkbox.

Kevin



I don't know if this will solve your problem. I had difficulties myself
with binding datetimepickers. I posted here without an answer. My problem
was the value wouldn't show in the dtp control. Finally out of desperation
I changed the binding from value to text on my two dtps, and the values
showed and the form worked completely properly. Database updated.
 

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

Top