DataGridViewComboBoxCell::ParseFormattedValue Method (Object^, DataGridViewCellStyle^, TypeConverter^, TypeConverter^)

 

Converts a value formatted for display to an actual cell value.

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

public:
virtual Object^ ParseFormattedValue(
	Object^ formattedValue,
	DataGridViewCellStyle^ cellStyle,
	TypeConverter^ formattedValueTypeConverter,
	TypeConverter^ valueTypeConverter
) override

Parameters

formattedValue
Type: System::Object^

The display value of the cell.

cellStyle
Type: System.Windows.Forms::DataGridViewCellStyle^

The DataGridViewCellStyle in effect for the cell.

formattedValueTypeConverter
Type: System.ComponentModel::TypeConverter^

A TypeConverter for the display value type, or null to use the default converter.

valueTypeConverter
Type: System.ComponentModel::TypeConverter^

A TypeConverter for the cell value type, or null to use the default converter.

Return Value

Type: System::Object^

The cell value.

.NET Framework
Available since 2.0
Return to top
Show: