Hi,
i have this code:
ug.DisplayLayout.Bands(0).Columns("col1").Style = ColumnStyle.Date
ug.DisplayLayout.Bands(0).Columns("col1").Format = "yyyyMMdd"
ug.DisplayLayout.Bands(0).Columns("col1").MaskInput = "yyyymmdd"
ug.DisplayLayout.Bands(0).Columns("col1").PromptChar = "_"c
Now, i can choose a date with the button on the right and after that the date is formed as in .Format defined (=correct).
But the user should also be able to type the date in format yyyymmdd (e.g. "20170503") without any _ : or something.
But this doesn't work. When I click in the cell the date Looks like "y17y0503".
When i set maskinput= "yyyy mm dd" it works fine, but we don't want this. We want yyyymmdd.
How can i get this?
Thank you so much...
Another info:
i try maskinput="########" , this Looks good, but when you leave the cell, you get "Unable to update the data value: Value in Editor is not valid". GRRRR
Another info
When i set maskinput to "yymmdd" it Shows me "yy " and i cannot type anything
So, the problem is, we don't want space or anything between yyyy and mm and dd because when the user clicks into the cell, the Focus is not always in front to start with the year....