wpf-devexpress-dot-xpf-dot-pivotgrid-dot-fieldvalueelementdata-f39d29d5.md
Gets the value of the field value cell.
Namespace : DevExpress.Xpf.PivotGrid
Assembly : DevExpress.Xpf.PivotGrid.v25.2.dll
NuGet Package : DevExpress.Wpf.PivotGrid
public override object Value { get; }
Public Overrides ReadOnly Property Value As Object
| Type | Description |
|---|---|
| Object |
An object that contains information about 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.
if (menuInfo != null && menuInfo.FieldValueElementData != null &&
menuInfo.FieldValueElementData.Value != null)
{
wpf-pivot-grid-create-field-value-template/CS/HowToCreateFieldValueTemplate/CategoriesControl.cs#L77
if(item != null && !item.IsOthersRow && !string.IsNullOrEmpty(item.DisplayText)) {
ImageSource = CategoriesControl.GetImage(item.Value as string);
} else {
Dim menuInfo As PivotGridFieldValueMenuInfo = TryCast(Me.pivotGrid.GridMenu.MenuInfo, PivotGridFieldValueMenuInfo)
If menuInfo IsNot Nothing AndAlso menuInfo.FieldValueElementData IsNot Nothing AndAlso menuInfo.FieldValueElementData.Value IsNot Nothing Then
Clipboard.SetDataObject(menuInfo.FieldValueElementData.Value)
See Also