Back to Devexpress

CreateCustomReportDesignRepositoryItemEventArgs.CriteriaString Property

expressappframework-devexpress-dot-expressapp-dot-reportsv2-dot-win-dot-createcustomreportdesignrepositoryitemeventargs-73cb5396.md

latest2.5 KB
Original Source

CreateCustomReportDesignRepositoryItemEventArgs.CriteriaString Property

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

Namespace : DevExpress.ExpressApp.ReportsV2.Win

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

NuGet Package : DevExpress.ExpressApp.ReportsV2.Win

Declaration

csharp
public string CriteriaString { get; set; }
vb
Public Property CriteriaString As String

Property Value

TypeDescription
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

csharp
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:

See Also

CreateCustomReportDesignRepositoryItemEventArgs Class

CreateCustomReportDesignRepositoryItemEventArgs Members

DevExpress.ExpressApp.ReportsV2.Win Namespace