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
600
Can you remove the PromptChar display completely?
posted

Hello all,

I have a UltraWinGrid and in it some cells have to take a positive float. Typically the value will be in the 1,000s or 10,000s and so I use a MaskInput = "99999.999"

Using the value 1234.56 as an example, the data in these cells display fine when they aren't in edit mode. However, in edit mode the display includes the PromptChar:

1234_.56_

The Infragistics knowledge base (http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.aspx?ArticleID=10078) says that to get remove of the prompt char you set it to ' ', but this isn't removing the PromptChar it's just replacing the underscore with an empty space:

1234 .56 

Which to my eyes just looks wrong and ugly.

Given that there is no equivalent of string.Empty for the char data type, and I've tried a null char ('\0' http://stackoverflow.com/questions/3670505/why-is-there-no-char-empty-like-string-empty) with no success, the question is, how can I get an the same display in edit mode as in non-edit mode i.e. 1234.56, but also have a filter to restrict the data type?

Note: If I remove the MaskInput it works fine, but then you can put in any characters you want and this data can only be positive numbers.

Parents Reply Children
No Data