Back to Devexpress

FieldValueElementData.IsOthersRow Property

wpf-devexpress-dot-xpf-dot-pivotgrid-dot-fieldvalueelementdata-366642b0.md

latest2.3 KB
Original Source

FieldValueElementData.IsOthersRow Property

Gets whether the element is the Others item if the Top N Values feature is enabled for the field.

Namespace : DevExpress.Xpf.PivotGrid

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

NuGet Package : DevExpress.Wpf.PivotGrid

Declaration

csharp
public bool IsOthersRow { get; }
vb
Public ReadOnly Property IsOthersRow As Boolean

Property Value

TypeDescription
Boolean

true if the element is the Others item; otherwise, false.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the IsOthersRow 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