Gets or sets the format that will be used to display data, in the column's cells.
'Declaration
<CategoryAttribute("Appearance")>
<DescriptionAttribute("The format that will be used to display data, in the column's cells.")>
<TypeConverterAttribute("Xceed.Grid.Design.FormatSpecifierConverter,Xceed.Grid.v4.3.Design,Version=4.3.20076.12375,Culture=neutral,PublicKeyToken=ba83ff368b7563c6")>
<AmbientValueAttribute("")>
<LocalizableAttribute(True)>
<ApplyToDesignerAttribute(False)>
Public Property FormatSpecifier As String
'Usage
Dim instance As Column
Dim value As String
instance.FormatSpecifier = value
value = instance.FormatSpecifier
[Category("Appearance")]
[Description("The format that will be used to display data, in the column's cells.")]
[TypeConverter("Xceed.Grid.Design.FormatSpecifierConverter,Xceed.Grid.v4.3.Design,Version=4.3.20076.12375,Culture=neutral,PublicKeyToken=ba83ff368b7563c6")]
[AmbientValue("")]
[Localizable(true)]
[ApplyToDesigner(false)]
public string FormatSpecifier {get; set;}
Property Value
A string representing the format that will be used to display data.
The following examples demonstrate how to set the FormatSpecifier property.
' Short date grid.Columns( "Date1" ).FormatSpecifier = "d" ' Long date grid.Columns( "Date2" ).FormatSpecifier = "D" ' Currency grid.Columns( "Amount" ).FormatSpecifier = "c"
// Short date grid.Columns[ "Date1" ].FormatSpecifier = "d"; // Long date grid.Columns[ "Date2" ].FormatSpecifier = "D"; // Currency grid.Columns[ "Amount" ].FormatSpecifier = "c";
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