Back to Devexpress

FieldValueElementData.DisplayText Property

wpf-devexpress-dot-xpf-dot-pivotgrid-dot-fieldvalueelementdata-29ce864c.md

latest2.1 KB
Original Source

FieldValueElementData.DisplayText Property

Gets the text that is displayed in the cell.

Namespace : DevExpress.Xpf.PivotGrid

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

NuGet Package : DevExpress.Wpf.PivotGrid

Declaration

csharp
public override string DisplayText { get; }
vb
Public Overrides ReadOnly Property DisplayText As String

Property Value

TypeDescription
String

The display text.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DisplayText 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-create-field-value-template/CS/HowToCreateFieldValueTemplate/CategoriesControl.cs#L76

csharp
FieldValueElementData item = this.DataContext as FieldValueElementData;
if(item != null && !item.IsOthersRow && !string.IsNullOrEmpty(item.DisplayText)) {
    ImageSource = CategoriesControl.GetImage(item.Value as string);

See Also

FieldValueElementData Class

FieldValueElementData Members

DevExpress.Xpf.PivotGrid Namespace