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)
I'm not sure why UltraCombo would strip out the time portion. The DateTimeEditor does this by deafult, but the UltraCombo cannot be doing anything specifically with DateTime values - all it could do is call ToString on the value you are binding to. Does the ToString of a DateTime include the time?
Yes, datetime ToString does include the time. A regular winforms combo box shows both date and time when bound to the same property.
Hi,
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.
Was there any resolution to this issue, we are facing the same problem in version 11.2.
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}";