BaseComboBoxCellGetFormattedValue Method

Gets the formatted value of the cell's data

Definition

Namespace: EWSoftware.ListControls.DataGridViewControls
Assembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2023.4.9.0
protected override Object GetFormattedValue(
	Object value,
	int rowIndex,
	ref DataGridViewCellStyle cellStyle,
	TypeConverter valueTypeConverter,
	TypeConverter formattedValueTypeConverter,
	DataGridViewDataErrorContexts context
)

Parameters

value  Object
The value to be formatted.
rowIndex  Int32
The index of the cell's parent row.
cellStyle  DataGridViewCellStyle
The cell style.
valueTypeConverter  TypeConverter
A TypeConverter associated with the value type that provides custom conversion to the formatted value type, or null if no such custom conversion is needed.
formattedValueTypeConverter  TypeConverter
A TypeConverter associated with the formatted value type that provides custom conversion from the value type, or null if no such custom conversion is needed.
context  DataGridViewDataErrorContexts
A bitwise combination of DataGridViewDataErrorContexts values describing the context in which the formatted value is needed.

Return Value

Object
The value of the cell's data after formatting has been applied or null if the cell is not part of a DataGridView control.

See Also