DataGridViewCell.DataGridViewCellAccessibleObject.Value 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 a string representing the formatted value of the owning cell.
public:
virtual property System::String ^ Value { System::String ^ get(); void set(System::String ^ value); };
public override string Value { get; set; }
public override string? Value { get; set; }
member this.Value : string with get, set
Public Overrides Property Value As String
Property Value
A String representation of the cell value.
Exceptions
The value of the Owner property is null
.
Remarks
The Value property contains a string that represents the value of the cell FormattedValue property. If FormattedValue is null
, Value contains the string "(null)".
Setting this property has no effect if the owning cell is a header cell, is read-only, or does not belong to a row. Otherwise, setting this property:
Ends any edit currently in progress and commits the value.
Uses the cell GetFormattedValue and ParseFormattedValue methods to convert the specified value to the type indicated by the cell ValueType property.
Sets the cell value to the converted value.
Applies to
See also
Váš názor
https://aka.ms/ContentUserFeedback.
Připravujeme: V průběhu roku 2024 budeme postupně vyřazovat problémy z GitHub coby mechanismus zpětné vazby pro obsah a nahrazovat ho novým systémem zpětné vazby. Další informace naleznete v tématu:Odeslat a zobrazit názory pro