Hey guys,
I have a grid that is bound to a list of objects and the type of one of those properties is datetime. We are using it only for the time portion. I've set the style property of this column in the grid toInfragistics.Win.UltraWinGrid.ColumnStyle.Time.
The question is, how do I show the time in military format?
thanks !
off the top of my head i would say add the Format="hh:mm" to your gridcolumn (don't qoute me on that)
Just relized you were using winGrid in addition to Format= you will need to set the CellDisplayStyle to FormattedText on the column in question.
Hey Chris, thanks for your reply !
This displays the time in the format I need, the problem is the cell editor, it keeps using AM and PM and a 12 hour time, instead of 24
do you have any suggestions?
thanks in advance !
yeah it works, thanks !
You don't need an UltraDateTimeEditor, you can just set the MaskInput (or maybe it's InputMask, I always get that mixed up) on the grid column.
You are the best!
Belay Last...
Add a UltraDateTimeEditor to your form and set the MaskInput to {LOC}hh:mm and DropDownButtonDisplayStyle to Never...
On the column in question change the EditorControl to the UltraDateTimeEditor
Worked like a charm...
I don't use the built in editors so I would need mess around with it...
I will check it out in the morning unless someone from IG answers you ahead of time...
(Unless I get some time tonight but pretty smoked right now)