Return Value

The DataGridView control calls this method to convert a cell value into an equivalent display value of the type indicated by the FormattedValueType property. The control passes the cell value to this method in the value parameter.

If formatting is successful and the context parameter value includes the ClipboardContent value, this method returns the String version of the formatted value for copying to the Clipboard. Otherwise, this method returns the formatted value for display in the DataGridView control.