Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
85
UltraDateTimeEditor and Nullable<DateTime>
posted

Hi. I hoped that the UltraDateTimeEditor would support databinding to DateTime? types, but it appears to not be as simple as setting the Nullable property. My object has the following property:

public DateTime? ProcessDate{get;set;}

 and I am setting up a binding as folows: 

myDateTimeEditor.DataBindings.Add(new Binding("Value", myObject, "ProcessDate"));

However, databinding doesn't seem to work at all with nullable types. Is this correct?

Parents
  • 37774
    posted

     What problems are you having exactly?  I just tried this and it is working correctly on my machine, though I passed in "this" for the second parameter of the Binding constructor, since my code and the property are on the same form.  What version are you using?  I am aware of some issues that were fixed a while ago, so upgrading to the latest hotfix might address your issue.

    -Matt 

Reply Children