Thursday, February 5, 2015

format a date at a DevExpress grid column

<dx:GridViewDataDateColumn FieldName="LastLogin" VisibleIndex="8"
      ReadOnly="True">
   <PropertiesDateEdit EditFormatString="d/M/yyyy h:mm:ss tt"
         DisplayFormatString="d/M/yyyy h:mm:ss tt" EditFormat="DateTime">
      <TimeSectionProperties>
         <TimeEditProperties EditFormatString="d/M/yyyy hh:mm:ss tt" />
      </TimeSectionProperties>
   </PropertiesDateEdit>
</dx:GridViewDataDateColumn>

No comments:

Post a Comment