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 |
---|---|
Process |
A Process |
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 |
Suppress | Removes all controls with consecutive identical values except the first control. Substitutes the removed controls with blank space. |
Suppress |
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:
#Related GitHub Examples
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.