Use the
DataFormatString property to specify a custom format for
the values displayed in the GridBoundColumn object.
If the
DataFormatString property is not set, the field's value is displayed
without any special formatting.
The formatting string can be any literal string and usually includes a placeholder
for the field's value.
For example, in the formatting string is "Item Value: {0}",
the field's value is substituted for the {0} placeholder when the string is displayed
in the GridBoundColumn object. The rest of the formatting string is displayed
as literal text (Item Value in this case).
However, make sure that the columns in the grid source are of the proper type
- DateTime (for dates), Integer for telephone numbers/currencies, etc.
Further information about the data format strings can be found in the grid documentation:
Formatting column values