편집

다음을 통해 공유


IDataGridViewEditingControl.GetEditingControlFormattedValue Method

Definition

Retrieves the formatted value of the cell.

public:
 System::Object ^ GetEditingControlFormattedValue(System::Windows::Forms::DataGridViewDataErrorContexts context);
public object GetEditingControlFormattedValue (System.Windows.Forms.DataGridViewDataErrorContexts context);
abstract member GetEditingControlFormattedValue : System.Windows.Forms.DataGridViewDataErrorContexts -> obj
Public Function GetEditingControlFormattedValue (context As DataGridViewDataErrorContexts) As Object

Parameters

context
DataGridViewDataErrorContexts

A bitwise combination of DataGridViewDataErrorContexts values that specifies the context in which the data is needed.

Returns

An Object that represents the formatted version of the cell contents.

Remarks

The formatted value represents the value as it is displayed in the control's user interface. The formatted value may be different in absolute value and even data type from the actual value contained in the control.

To set the formatted value of the control, use the EditingControlFormattedValue property.

Notes to Implementers

Changing the return value in your implementation of this method does not automatically change the displayed value. When the value changes in the editing control, you must notify the DataGridView of the change by passing true to the NotifyCurrentCellDirty(Boolean) method.

Applies to

See also