OK, I've encountered a weird issue. I have a column in my UltraWinGrid (still stuck on 2012 volume 2). The column displays the name of regions and my test data has values such as "Region One", "Region Two", etc.
I want the cell to be preceded with a "REGION:" label, so I have the following:
With .Columns("Name") .MaskInput = "\R\E\G\I\O\N\: &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&" ' the name can be 30 characters long .MaskDisplayMode = MaskMode.IncludeLiterals .MaskLiteralsAppearance.ForeColor = Color.DimGrayEnd With
When my grid displays, I get the grey text "REGION:" prefix that I want, but any region that begins with a capital letter gets that letter stripped. "Region One" shows as "egion One". If the name starts with a lowercase letter, it shows fine - e.g. "region two" shows as "region two".
EDIT - turns out it's ALL capital letters at the beginning that get stripped. "REGion three" shows as "ion three". I thought ampersand was "any character"?
What in the world could be wrong! I am at my wits end trying to figure this out.
Hi Steve,
Thank you for posting in our forums!
Following the provided code snippet, I am not able to reproduce your issue using the latest service release of NetAdvantage 2012 Volume 2 on Windows 10 64-bit operating system. Please let me know the operating system you are testing on and the minor version of NetAdvantage 2012 Volume 2? In additional, can you isolate the UltraGrid bound with testing data in a sample application and attach it your next response?
For your convenience, I attached my sample application. Don’t hesitate to modify it, in order to reproduce the issue. Please run it on your testing environment and let me how it behaves on your side.
I am waiting for your feedback.
OK, more testing yields stranger results. It seems that the capital letters only get stripped if they match any of those literal placeholders...
"TEST one" displays as "TEST one"
"REGion two" displays as "ion two"
"REGION test" displays as " test"
Am I doing something wrong with those escape characters to get "REGION:" to show as a prefix? There's nothing in the MaskInput help info I can see that leads me to think something's amiss.