Back to Devexpress

CellValueEventArgs.Value Property

wpf-devexpress-dot-xpf-dot-grid-dot-cellvalueeventargs-1d817420.md

latest3.9 KB
Original Source

CellValueEventArgs.Value Property

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

Declaration

csharp
public object Value { get; protected set; }
vb
Public Property Value As Object

Property Value

TypeDescription
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

csharp
return;
string interval = IntervalByValue(e.Value);
e.DisplayText = interval;

wpf-data-grid-change-background-color-for-modified-cells/CS/HighlightChangedCellBehavior.cs#L44

csharp
if (originalValues.TryGetValue(key, out originalValue))
    isModified = !Equals(originalValue, e.Value);
else

wpf-data-grid-edit-form-related-cells/CS/SynchronizeEditValuesInEditForm_CodeBehind/MainWindow.xaml.cs#L52

csharp
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

vb
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

vb
If Me.originalValues.TryGetValue(key, originalValue) Then
    isModified = Not System.[Object].Equals(originalValue, e.Value)
Else

wpf-data-grid-edit-form-related-cells/VB/SynchronizeEditValuesInEditForm_CodeBehind/MainWindow.xaml.vb#L58

vb
Dim price As Integer = 0
Call Integer.TryParse(CStr(e.Value), price)
positionValueData.Value = CInt(amountData.Value) * price

See Also

CellValueEventArgs Class

CellValueEventArgs Members

DevExpress.Xpf.Grid Namespace