DataGridViewCheckBoxCell::FormattedValueType Property

 

Gets the type of the cell display value.

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

public:
property Type^ FormattedValueType {
	virtual Type^ get() override;
}

Property Value

Type: System::Type^

A Type representing the display type of the cell.

If the ThreeState property value is false, the value of this property is the Boolean type; otherwise, it is the CheckState type.

The following code example demonstrates how to use the DataGridViewCell::FormattedValueType property to determine the type of the cell contents. In this example, the DataGridViewCell::FormattedValueType property is used to determine whether the cell contains a String before attempting to convert the value. This example is part of a larger example available in the DataGridView::SelectionChanged event.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: