Skip to main content
All docs
V24.2
.NET 8.0+

CreateCustomReportDesignRepositoryItemEventArgs.CriteriaString Property

Specifies the criteria that filters the collection of report parameter objects.

Namespace: DevExpress.ExpressApp.ReportsV2.Win

Assembly: DevExpress.ExpressApp.ReportsV2.Win.v24.2.dll

Declaration

public string CriteriaString { get; set; }

Property Value

Type Description
String

The criteria that filters the collection of report parameter objects.

Remarks

The following example demonstrates how to set this property:

File:
MySolution.Win\WinModule.cs

using DevExpress.ExpressApp;
using DevExpress.ExpressApp.ReportsV2.Win;
using DevExpress.Persistent.Base.ReportsV2;
// ...
public sealed partial class MySolutionWindowsFormsModule : ModuleBase {
    // ...
    public MySolutionWindowsFormsModule() {
        InitializeComponent();
        ReportsWindowsFormsModuleV2.CreateCustomReportDesignRepositoryItem += 
        ReportsWindowsFormsModuleV2_CreateCustomReportDesignRepositoryItem;
    }
    private void ReportsWindowsFormsModuleV2_CreateCustomReportDesignRepositoryItem(object sender, 
    CreateCustomReportDesignRepositoryItemEventArgs e) {
        e.CriteriaString = "[MyProperty] = True";
    }
}

The image below demonstrates the result:

The filtered list of report parameter objects

Refer to the following help topic for information on other techniques you can use to filter report parameter objects: How to: Filter a Report Parameter's Lookup.

See Also