C1.C1Report Namespace > Field Class : Format Property |
You can use the Format property to customize the way numbers, dates, times, and text are displayed and printed.
For example, if you've created a Price field, you can set its Format property to "Currency". If the field value is set to "4321.678", it would be rendered as $4,321.68.
You can use the Format property to format numbers (including currency and percentage values), dates, boolean values, and strings.
The syntax for the format string is the same used with the .NET System.String.Format(System.String,System.Object) method.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2