Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
125
Format date for DateTimeEditor in UltrWinGrid
posted
Hi, there: 

I am trying to use DateTimeEditor as the editor for a column in Infragistics UltraWinGrids. I am having hard time to apply format to the display. I am wondering whether anybody can help me.

 

 Basically, I have a configurable format which I want to apply to the column. Once I got into edit mode it always displays the default format (MM/dd/yyyy) and just ignore my custom format (such as yyyy/MM/dd).  Also I have a DataFilter on DateTimeEditor control. There are 4 directions but only 3 directions got called. The code in EditorToDisplay  block never involved.  

 

Any help is highly appreciated.
Parents
No Data
Reply
  • 2070
    posted

    Hi,

     

     If all you want to do is change the format, then you should set the MaskInput property of the column to something like "yyyy/mm/dd". Format is for non-edit mode and mask is for edit mode. Note that you don't need any data filter for this.

     

    Sandip 

Children
No Data