Using an UltraCombo that is databound to a datetime, how do I get the control to display both the date and time instead of just the date (as it does by default)? (not the UltraDateTimeEditor)
Hello,I am not sure what is your scenario exactly, but I was able to achieve this with the following code:
ultraCombo1.DisplayLayout.Bands[0].Columns["DateTime"].MaskInput = "{date} {time}";
I think we switched controls
Hi,
Was there any resolution to this issue, we are facing the same problem in version 11.2.
Hm, that's really weird, then. I can't imagine why the UltraCombo would do anything special with dates.
What kind of fields are on your list? Your ValueMember field must be a DateTime field, too, I suppose. Are you specifying a separate ValueMember and DisplayMember? Do either the ValueMember or DisplayMember columns have a format applied?
If none of that helps you, I recommend that you create a small sample project demonstrating the issue and Submit an incident to Infragistics Developer Support.
Yes, datetime ToString does include the time. A regular winforms combo box shows both date and time when bound to the same property.