Back to Devexpress

CellElementData.Value Property

wpf-devexpress-dot-xpf-dot-pivotgrid-dot-cellelementdata-7ff6755d.md

latest2.6 KB
Original Source

CellElementData.Value Property

Gets the value of the cell.

Namespace : DevExpress.Xpf.PivotGrid

Assembly : DevExpress.Xpf.PivotGrid.v25.2.dll

NuGet Package : DevExpress.Wpf.PivotGrid

Declaration

csharp
public override object Value { get; }
vb
Public Overrides ReadOnly Property Value As Object

Property Value

TypeDescription
Object

The cell’s value.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference 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-pivot-grid-define-custom-cell-template-to-performing-data-editing/CS/HowToEditCell/PivotGridEditHelper.cs#L140

csharp
if(edit.EditValue != null && decimal.TryParse(edit.EditValue.ToString(), out newValue)) {
    if (item.Value == null || !decimal.TryParse(item.Value.ToString(), out oldValue))
    {

wpf-pivot-grid-define-custom-cell-template-to-performing-data-editing/VB/HowToEditCell/PivotGridEditHelper.vb#L148

vb
If edit.EditValue IsNot Nothing AndAlso Decimal.TryParse(edit.EditValue.ToString(), newValue) Then
    If item.Value Is Nothing OrElse Not Decimal.TryParse(item.Value.ToString(), oldValue) Then
        edit.EditValue = Nothing

See Also

CellElementData Class

CellElementData Members

DevExpress.Xpf.PivotGrid Namespace