Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

XRLabel.ProcessDuplicatesMode Property

Specifies how to process a XRLabel control with duplicate values. See the ProcessDuplicatesMode enumeration description for information on the different duplicate processing modes.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v24.2.dll

NuGet Package: DevExpress.Reporting.Core

#Declaration

[Browsable(true)]
public override ProcessDuplicatesMode ProcessDuplicatesMode { get; set; }

#Property Value

Type Description
ProcessDuplicatesMode

A ProcessDuplicatesMode enumeration value.

Available values:

Name Description
Leave

Leaves all controls with identical values as is.

Merge

Merges controls with consecutive identical values into a single control. Note that this mode ignores controls with null values. Use the control’s ProcessNullValues property to process controls with null values.

Suppress

Removes all controls with consecutive identical values except the first control. Substitutes the removed controls with blank space.

SuppressAndShrink

Does the same as the Suppress mode and then shrinks blank space. Note that this mode cannot be used for intersecting controls and vertical bands.

#Remarks

Use this property to process duplicate values of the XRLabel‘s Text or Tag property. Use the XRLabel‘s ProcessDuplicatesTarget property to set one of them.

The sample report screenshots below show how different duplicate processing modes are applied to the XRLabel control in the Country column.

Note that if there are no controls on a band after duplicate values are removed, the band is not printed.

In the previous images, all the values of the second and third table row are the same. After the duplicates on the third line are removed, the band is empty. Although the duplicate processing mode is set to Suppress, the band is not printed.

For more information, review the following help topics:

View Example: How to process duplicate values in a report

The following code snippets (auto-collected from DevExpress Examples) contain references to the ProcessDuplicatesMode 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.

See Also