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!
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.
Thanks, but i need to limit the user to input years between 2000 and 2099...
Hello,
If you just need to restrict the User to input the years between 2000 and 2099 you probably could use Min/MaxValue properties of the column itself.
Please let me know if that is not what you are looking for.