Hi there
I have an UltraTextEditor control that displays a value which I wish to be displayed in a formatted fashion that is different from the 'raw' underlying data value i.e. with a currency symbol or formatting a date from UTC to local.
Does the control have the ability to have a format applied to it via property/method and do I need to do this via an event?
Regards
Geoff Hopkins
Hi Boris
To be perfectly honest that was almost 5 years ago and I don't really remember exactly what our final solution was for that one. Suffice to say that it no longer presents us a problem so it is safe to close the support request.
Geoff
Hello Geoff,
Did you try one of these controls? Do you need a sample project about a scenario of your, I will be glad to create it for you.
Geoff,
The UltraTextEditor deals with a string type, for which .NET does not support using a format string (i.e. ToString("c")), so there is no Format property exposed. Your best option would be to use the appropriate editor for your needs, such as an UltraCurrencyEditor or an UltraDateTimeEditor; each of these controls has a Format property. If this is not an option, you could use a DataFilter to try to convert the string to the appropriate type, then call the ToString method with the corresponding .NET format string.
-Matt