DataGridViewImageCell.ValueType Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the data type of the values in the cell.
public:
virtual property Type ^ ValueType { Type ^ get(); void set(Type ^ value); };
public override Type ValueType { get; set; }
public override Type? ValueType { get; set; }
member this.ValueType : Type with get, set
Public Overrides Property ValueType As Type
Property Value
The Type of the cell's value.
Remarks
When retrieving this property, if the ValueType for the cell has not been set, then the DataGridViewColumn.ValueType for the owning column is used, if it exists. If no owning column exists, the default value type is used, which is the Image type if the ValueIsIcon property is set to false
and the Icon type otherwise.
The Value is the actual data object contained in the cell, whereas the FormattedValue property is the formatted representation of this object. The ValueType and FormattedValueType properties correspond to the data types of these values, respectively.
Applies to
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for