DataGridViewCheckBoxCell.GetEditingCellFormattedValue Method (DataGridViewDataErrorContexts)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets the formatted value of the cell while it is in edit mode.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public virtual object GetEditingCellFormattedValue(
	DataGridViewDataErrorContexts context


Type: System.Windows.Forms.DataGridViewDataErrorContexts

A bitwise combination of DataGridViewDataErrorContexts values that describes the context in which any formatting error occurs.

Return Value

Type: System.Object

An Object representing the formatted value of the editing cell.

Exception Condition

The FormattedValueType property value is null.

When context includes the ClipboardContent value, this method returns an Object that you can cast to a String representation of the value. Otherwise, this method returns a Boolean or a CheckState value, depending on the value of the FormattedValueType property.

.NET Framework
Available since 2.0
Return to top