| StyleFormat Property |
Gets or sets the numeric format for the cell.
Namespace: Stingray.GridAssembly: Stingray.GridControl (in Stingray.GridControl.dll) Version: 14.0.0.0
Syntax [DefaultValueAttribute(typeof(NumericFormat), "Default")]
public NumericFormat Format { get; set; }
<DefaultValueAttribute(GetType(NumericFormat), "Default")>
Public Property Format As NumericFormat
Get
Set
public:
[DefaultValueAttribute(typeof(NumericFormat), L"Default")]
property NumericFormat Format {
NumericFormat get ();
void set (NumericFormat value);
}
Property Value
Type:
NumericFormat
The cell's numeric format.
Remarks
This property lets you format number values for static cells
and specify the precision of the value (number of significant
digits). The formatted value will be displayed only for static
cells. If you start editing a cell the original value will be
displayed.
For example, if you store the value 122.2345 into a cell and set
the format to be fixed with two decimals, 122.23 will be
displayed in the cell. When you click into the cell the cell
value will change to 122.2345. Once you leave the cell the
display text will change back to 122.2345.
When you apply numeric formatting to a cell it will only affect
the cell if the value type is Numeric.
See Also