Thanks for your quick reply.
Yes, the reason for using a different nullable date-time picker is due to a customer requirement that no date should be displayed if no date has yet been entered. The .NET date-time picker (is this the same as the DevForce one?) will always display a date, even when the value is null.
It has a strange checkbox implementation that is not intuitive at all - especially as null dates are displayed as todays date, but grayed out.
So, what I would really like, is a datetime picker that allows users to type freehand dates, but also contains a drop down picker. I was hoping to be able to use the control that I mentioned in my initial post, but I don't think it's going to work...
I think I am going to have to write my own control (using http://www.ideablade.com/forum/forum_posts.asp?TID=133 - http://www.ideablade.com/forum/forum_posts.asp?TID=133 as a reference).
As far as I can see, there are a couple of ways to go about this. I can either create an owner-drawn date-time picker, or I can roll my own, using a combination of a combo-box and a calendar control, which is the direction I am leaning towards at the moment. I can catch the dropdown/up events and display the calendar appropriately and users can also type free text into the combo (which would of course be parsed by a DateConverter).
At some point, I will almost certainly need to host this control in a DataGridView as well, but I am assuming I can follow these instructions to implement that functionality: http://msdn2.microsoft.com/en-us/library/7tas5c80%28VS.80%29.aspx - http://msdn2.microsoft.com/en-us/library/7tas5c80(VS.80).aspx
You also mentioned that you could give me the DataBinder for the NullableDatePicker. If you could provide that, or even just an example of a custom DataBinder, I would be extremely grateful.
Thanks again for your response, and if you think of any additional hints or pitfalls to avoid, please let me know!
|