Version

Format Property (GridColumn)

format for cells
  • If DataType is "date", then supported formats are following:

    "date", "dateLong", "dateTime", "time", "timeLong", "MM/dd/yyyy", "MMM-d, yy, h:mm:ss tt", "dddd d MMM", etc.
  • If DataType is "number" or not set, then supported numeric formats are following:

    "number", "currency", "percent", "int", "double", "0.00", "#.0####", "0", "#.#######", etc. The value of "double" will be similar to "number", but with unlimited maximum number of decimal places
  • If DataType is "string" or not set, then format is rendered as it is with replacement of possible "{0}" flag by value in cell

    Example, if format is set to "Name: {0}" and value in cell is "Bob", then value will appear as "Name: Bob"
  • If DataType is "bool", then supported format is "checkbox" which will override the RenderCheckboxes property of grid.
Syntax
'Declaration
 
Public Property Format As System.String
public System.string Format {get; set;}
Requirements

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

View on GitHub