The requested page is not available for the requested platform. You are viewing the content for Default platform.

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.v19.1.dll

Declaration

public enum ProcessDuplicatesTarget
Public Enum ProcessDuplicatesTarget

Members

Name Description
Tag

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

Value

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

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