Syncfusion.SfDataGrid.XForms
Example 

Format Property (GridColumn)

Gets or sets a value that indicates the format applied for the Content of record cells in the column. SfDataGrid enables the user to apply Format for the records in the cells by setting this property.

SfDataGrid enables the user to populate the data for the GridUnboundColumn using this property. This property enables the user to format the values of other columns and display the formatted value in unbound column.

Syntax
public string Format {get; set;}

Property Value

The format applied to the record in the cells.
Remarks
SfDataGrid enables the user to apply Format for the records in the cells by setting this property. Assign the FormatString to this property based on the type of the property the GridColumn is associated with to format the value.

SfDataGrid enables the user to populate the data for the GridUnboundColumn using this property. This property enables the user to format the values of other columns and display the formatted value in unbound column.

Example
dataGrid.Columns.Add (new GridTextColumn () { 
    MappingName = "ShippingDate",
    Format = "dd/MM/yyyy"
    });
GridUnboundColumn DiscountColumn = new GridUnboundColumn()
{
    MappingName = "DiscountPrice",
    HeaderText = "Discount Price",
    Format = "'{Discount}% for {OrderID}'"
};
dataGrid.Columns.Add(DiscountColumn);
AssemblyVersion

Syncfusion.SfDataGrid.XForms: 17.2451.0.34

See Also