Back to Devexpress

DashboardControl.CustomFilterExpression Event

dashboard-devexpress-dot-dashboardwpf-dot-dashboardcontrol-470a1ef9.md

latest2.8 KB
Original Source

DashboardControl.CustomFilterExpression Event

Allows you to include WHERE clauses into DashboardSqlDataSource queries.

Namespace : DevExpress.DashboardWpf

Assembly : DevExpress.Dashboard.v25.2.Wpf.dll

NuGet Package : DevExpress.Wpf.Dashboard

Declaration

csharp
public event DashboardCustomFilterExpressionEventHandler CustomFilterExpression
vb
Public Event CustomFilterExpression As DashboardCustomFilterExpressionEventHandler

Event Data

The CustomFilterExpression event's data class is DashboardCustomFilterExpressionEventArgs. The following properties provide information specific to this event:

PropertyDescription
DataSourceObtains the data source that provides data for the dashboard. Inherited from DataSourceEventArgs.
FilterExpressionGets or sets the filter expression that defines a WHERE clause included in the SQL query.

Remarks

The CustomFilterExpression event fires for each SelectQuery within the SqlDataSource.Queries collection. The e.FilterExpression property allows you to include a WHERE clause into a query at runtime. If a filter is already applied to the SQL query, e.FilterExpression returns the corresponding filter criteria.

For more information on how to create filter criteria as a CriteriaOperator object, refer to the following help article: Simplified Criteria Syntax.

Note

The CustomFilterExpression event is not raised for custom SQL queries and stored procedures.

See Also

ConfigureDataConnection

DashboardControl Class

DashboardControl Members

DevExpress.DashboardWpf Namespace