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
2715
Column mask behaviour in edit/non-edit mode
posted

hi !

I'm setting a mask to a grid column like this :

            UltraGridColumn column = grid.DisplayLayout.Bands[0].Columns["Year"];

            column.MaskInput = "20##";

            column.MaskDataMode = MaskMode.IncludeBoth;

            column.MaskDisplayMode = MaskMode.IncludeBoth;

The problem is that when not in edit mode, if i have the year 1999, i get the value 2019

What shoud i change in order to get this value displayed corectly ?

Thanks!

Parents
  • 69832
    Offline posted

    If the data in the 'Year' column contains all four digits for the year, there is no reason to use a mask of "20##". Just make it "####" instead.

Reply Children