wpf-devexpress-dot-xpf-dot-pivotgrid-dot-fieldvalueelementdata-29ce864c.md
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
public override string DisplayText { get; }
Public Overrides ReadOnly Property DisplayText As String
| Type | Description |
|---|---|
| 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
FieldValueElementData item = this.DataContext as FieldValueElementData;
if(item != null && !item.IsOthersRow && !string.IsNullOrEmpty(item.DisplayText)) {
ImageSource = CategoriesControl.GetImage(item.Value as string);
See Also