FlexGrid for WinForms
Format Property (RowCol)



Gets or sets a string that specifies how to format the data on this column.
Syntax
'Declaration
 
<CategoryAttribute("Appearance")>
<C1DescriptionAttribute("Gets or sets the format used to display values in this row or column.")>
<EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="C1.Design.C1FormatStringUITypeEditor, C1.Win.C1FlexGrid.4.Design")>
<DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)>
<DefaultValueAttribute()>
Public Property Format As String
'Usage
 
Dim instance As RowCol
Dim value As String
 
instance.Format = value
 
value = instance.Format
[Category("Appearance")]
[C1Description("Gets or sets the format used to display values in this row or column.")]
[Editor(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="C1.Design.C1FormatStringUITypeEditor, C1.Win.C1FlexGrid.4.Design")]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[DefaultValue()]
public string Format {get; set;}
[Category("Appearance")]
[C1Description("Gets or sets the format used to display values in this row or column.")]
[Editor(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="C1.Design.C1FormatStringUITypeEditor, C1.Win.C1FlexGrid.4.Design")]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[DefaultValue()]
public:
property String^ Format {
   String^ get();
   void set (    String^ value);
}
Remarks

The Format property affects how values are formatted for display, not the values stored internally. To retrieve the formatted value of a cell, use the GetDataDisplay(Int32,Int32) property.

The Format string has the same semantics as the format argument in the .NET System.String.Format(System.String,System.Object) method. For details and a complete set of examples, see the .NET documentation.

Requirements

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

See Also

Reference

RowCol Class
RowCol Members

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Send Feedback