wpf-devexpress-dot-xpf-dot-grid-dot-cellvalueeventargs-1d817420.md
Gets or sets the processed cell’s value.
Namespace : DevExpress.Xpf.Grid
Assembly : DevExpress.Xpf.Grid.v25.2.dll
NuGet Package : DevExpress.Wpf.Grid.Core
public object Value { get; protected set; }
Public Property Value As Object
| Type | Description |
|---|---|
| Object |
An object that represents the cell’s value.
|
The following code snippets (auto-collected from DevExpress Examples) contain references to the Value property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
wpf-data-grid-implement-custom-grouping/CS/CustomGrouping_CodeBehind/MainWindow.xaml.cs#L51
return;
string interval = IntervalByValue(e.Value);
e.DisplayText = interval;
wpf-data-grid-change-background-color-for-modified-cells/CS/HighlightChangedCellBehavior.cs#L44
if (originalValues.TryGetValue(key, out originalValue))
isModified = !Equals(originalValue, e.Value);
else
int.TryParse((string)e.Value, out price);
positionValueData.Value = (int)amountData.Value * price;
wpf-data-grid-implement-custom-grouping/VB/CustomGrouping_CodeBehind/MainWindow.xaml.vb#L50
If Not Equals(e.Column.FieldName, "UnitPrice") Then Return
Dim interval As String = IntervalByValue(e.Value)
e.DisplayText = interval
wpf-data-grid-change-background-color-for-modified-cells/VB/HighlightChangedCellBehavior.vb#L63
If Me.originalValues.TryGetValue(key, originalValue) Then
isModified = Not System.[Object].Equals(originalValue, e.Value)
Else
Dim price As Integer = 0
Call Integer.TryParse(CStr(e.Value), price)
positionValueData.Value = CInt(amountData.Value) * price
See Also