Formats the specified field value for a cell in the System.Web.UI.WebControls.BoundField object.
![]()
The field value converted to the format specified by BoundField.DataFormatString.
The BoundField.FormatDataValue(object, bool) method is a helper method used to transform a field value to the format specified by the BoundField.DataFormatString property. If a field value is null, the value of the BoundField.NullDisplayText property is returned.
This method is used primarily by control developers.