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
640
column style= Date and special MaskInput
posted

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...