Click or drag to resize
StyleFormat Property
Gets or sets the numeric format for the cell.

Namespace: Stingray.Grid
Assembly: Stingray.GridControl (in Stingray.GridControl.dll) Version: [TAG_DECIMAL_VERSION]
[DefaultValueAttribute(typeof(NumericFormat), "Default")]
public NumericFormat Format { get; set; }

Property Value

Type: NumericFormat
The cell's numeric format.
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