Skip to main content
A newer version of this page is available. .

ProcessDuplicatesTarget Enum

Lists the values that specify whether to process duplicate values of a report control’s data, or its XRControl.Tag property values.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v18.2.dll

Declaration

public enum ProcessDuplicatesTarget

Members

Name Description
Value

The XRControl.ProcessDuplicatesMode property is in effect for the reports control’s data.

Tag

The XRControl.ProcessDuplicatesMode property is in effect for the XRControl.Tag property of a report control.

Remarks

The following properties return a ProcessDuplicatesTarget value:

The code below demonstrates how you can process duplicate values of the report’s Category Name column.

using DevExpress.XtraReports.UI;
//...
public partial class ProductsReport : DevExpress.XtraReports.UI.XtraReport {
    //...
        // Display duplicate values.
        public void NoMerge() {
            this.ShowPreviewDialog();
        }
        // Merge duplicate the XRControl.Tag property's values.
        public void MergeByTag() {
            ExpressionBinding expressionBinding = new ExpressionBinding("BeforePrint", "Tag", "ToStr([SupplierID]) + '_' + ToStr([CategoryID])");
            this.lbCategoryName.ExpressionBindings.Add(expressionBinding);
            this.lbCategoryName.ProcessDuplicatesMode = ProcessDuplicatesMode.Merge;
            this.lbCategoryName.ProcessDuplicatesTarget = DevExpress.XtraReports.UI.ProcessDuplicatesTarget.Tag;
            this.ShowPreviewDialog();
        }
        // Merge duplicate values of a report control's data. 
        public void MergeByValue() {
            ExpressionBinding expressionBinding = new ExpressionBinding("BeforePrint", "Text", "[CategoryName]");
            this.lbCategoryName.ExpressionBindings.Add(expressionBinding);
            this.lbCategoryName.ProcessDuplicatesMode = ProcessDuplicatesMode.Merge;
            this.lbCategoryName.ProcessDuplicatesTarget = DevExpress.XtraReports.UI.ProcessDuplicatesTarget.Value;
            this.ShowPreviewDialog();
        }
    }

This image illustrates the result.

See Also