I am new user to this product, I tried to create a very simple GridView, data are back from SQL sp, it contains Int, string and datetime format, all fields are display normally except for datetime field, it only shows Date without time, i.e. "1/10/2009" instead of "1/10/2009 10:34:32", I switched to regular GridView (VS 2008), it shows all format correctly.
Since I am not familiar with this product, I only tried few settings but no success. What setting I should use to control the display format?
Thanks for your help in advance,
Tom
Datetime display and format at GridView data cell
Answers
Hi Tom,
Set the column's PropertiesDateEdit.DisplayFormat to the "g" value to resolve this issue.
Thanks,
Plato
Hello Ismail,
Please check our online demo:
ASPx<dx:GridViewDataDateColumn Caption="Last Updated" FieldName="LastUpdated" Width="120px">
<PropertiesDateEdit DisplayFormatString="HH:mm:ss">
</PropertiesDateEdit>
<CellStyle HorizontalAlign="Right" />
</dx:GridViewDataDateColumn>