Base Combo Box CellGet Formatted Value Method
Gets the formatted value of the cell's data
Definition
Namespace: EWSoftware.ListControls.DataGridViewControls
Assembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2024.12.31.0
The value of the cell's data after formatting has been applied or null if the cell is not part of a DataGridView control.
Assembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2024.12.31.0
C#
protected override Object GetFormattedValue(
Object? value,
int rowIndex,
ref DataGridViewCellStyle cellStyle,
TypeConverter? valueTypeConverter,
TypeConverter? formattedValueTypeConverter,
DataGridViewDataErrorContexts context
)VB
Protected Overrides Function GetFormattedValue (
value As Object,
rowIndex As Integer,
ByRef cellStyle As DataGridViewCellStyle,
valueTypeConverter As TypeConverter,
formattedValueTypeConverter As TypeConverter,
context As DataGridViewDataErrorContexts
) As ObjectC++
protected:
virtual Object^ GetFormattedValue(
Object^ value,
int rowIndex,
DataGridViewCellStyle^% cellStyle,
TypeConverter^ valueTypeConverter,
TypeConverter^ formattedValueTypeConverter,
DataGridViewDataErrorContexts context
) overrideF#
abstract GetFormattedValue :
value : Object *
rowIndex : int *
cellStyle : DataGridViewCellStyle byref *
valueTypeConverter : TypeConverter *
formattedValueTypeConverter : TypeConverter *
context : DataGridViewDataErrorContexts -> Object
override GetFormattedValue :
value : Object *
rowIndex : int *
cellStyle : DataGridViewCellStyle byref *
valueTypeConverter : TypeConverter *
formattedValueTypeConverter : TypeConverter *
context : DataGridViewDataErrorContexts -> Object 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
ObjectThe value of the cell's data after formatting has been applied or null if the cell is not part of a DataGridView control.