We can use DataFormatString Property to format the data inside the DataGrid.
Example:
We can use DataFormatString Property to format the data inside the DataGrid. If the DataFormatString property is not set, the field's value is displayed without any special formatting.