Yes, but you have to take care of handing null values in the DataSet as DTP
would not accept them.
To do so you need to implement Binding.Format Event handler. There's a
sample in VS documentation on how to do it.
Best regards,
Ilya
This posting is provided "AS IS" with no warranties, and confers no rights.
[quoted text, click to view] "Mike" <Mike@discussions.microsoft.com> wrote in message
news:8FB5DD09-4346-4B65-A4CB-06874AA9811B@microsoft.com...
>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