Version

DisplayFormat Property

Returns or sets the string used to format cell values for this instance.
Syntax
'Declaration
 
Public Property DisplayFormat As String
public string DisplayFormat {get; set;}
Remarks

For measures of numeric data types, this property defaults to the ideal value for the associated type, as illustrated by the following table:

Type Format Specifier
System.Byte (byte) "d"
System.SByte (sbyte) "d"
System.Int16 (short) "d"
System.Int32 (int) "d"
System.Int64 (long) "d"
System.UInt16 (ushort) "d"
System.UInt32 (uint) "d"
System.UInt64 (ulong) "d"
System.Single (float) "f"
System.Double (double) "f"
System.Decimal (decimal) "c"

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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

See Also