Skip to main content
All docs
V24.2
.NET Framework 4.6.2+

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

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