G
Guest
I am trying to bind a DataTimePicker control to a DataSet but cant seem to
get it working. I am using the following code...
DateTimePicker.DataBindings.Add(New Binding("Value", dtSampleData, "Date"))
All of my other fields bind fine but when I try to bind the DateTimePicker
control I get 'Error 13 InvalidCastException'. I am binding to a Date field
that is a Date/Time datatype. Is binding the DateTimePicker even possible?
If so I would greatly appreciate any suggestions!
Thx
Mike
get it working. I am using the following code...
DateTimePicker.DataBindings.Add(New Binding("Value", dtSampleData, "Date"))
All of my other fields bind fine but when I try to bind the DateTimePicker
control I get 'Error 13 InvalidCastException'. I am binding to a Date field
that is a Date/Time datatype. Is binding the DateTimePicker even possible?
If so I would greatly appreciate any suggestions!
Thx
Mike