Hi,
In intialize layout,
Cells(1).Style = ColumnStyle.DateWithoutDropDownCells(1).Column.Format = "dd/MM/yyyy"
Displaying is ok, but when editing it takes "MM/dd/yyyy" format. How to change this behaviour
Hey,
The "Format" property is only for the display format of the cell.To change the input format, you need to change the "MaskInput" property.
More information can be found here: http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.Aspx?ArticleID=1744
Kind regards,
Michael
Thanks for the reply
i tried the as like below..
it not working. Please help me on this
rw.Cells(1).Column.Format = "mm/dd/yyyy"
rw.Cells(1).Column.MaskInput = "mm/dd/yyyy"
rw.Cells(1).Column.MaskDataMode = Infragistics.Win.UltraWinMaskedEdit.MaskMode.Raw
rw.Cells(1).Column.MaskClipMode=Infragistics.Win.UltraWinMaskedEdit.MaskMode.IncludeBoth
rw.Cells(1).Column.MaskDisplayMode = Infragistics.Win.UltraWinMaskedEdit.MaskMode.IncludeBoth
rw.Cells(1).Column.PromptChar = " "
I got it Mike. thanks for your reply
rw.Cells(1).Column.Format = "dd/MM/yyyy"
rw.Cells(1).Column.MaskInput = "dd/mm/yyyy"
mask input sud be "dd/mm/yyyy" and not "dd/MM/yyyy". Due to case sensitivity