Back to Devexpress

CustomizeFilterExpressionEventArgs Class

corelibraries-devexpress-dot-dataaccess-dot-sql-d32a9184.md

latest3.0 KB
Original Source

CustomizeFilterExpressionEventArgs Class

Provides data for the SqlDataSource.CustomizeFilterExpression event.

Namespace : DevExpress.DataAccess.Sql

Assembly : DevExpress.DataAccess.v25.2.dll

NuGet Package : DevExpress.DataAccess

Declaration

csharp
public class CustomizeFilterExpressionEventArgs :
    EventArgs
vb
Public Class CustomizeFilterExpressionEventArgs
    Inherits EventArgs

CustomizeFilterExpressionEventArgs is the data class for the following events:

Remarks

The SqlDataSource.CustomizeFilterExpression event is fired when the SqlDataSource sends a query to reload data from the server (for instance, on the SqlDataSource.Fill method call). Use the event parameter’s CustomizeFilterExpressionEventArgs.FilterExpression property to specify a filter expression to be included in this query as a WHERE clause.

The filter expression should be represented by the CriteriaOperator descendant. To learn how to create the appropriate object, see Creating Criteria. Use the CustomizeFilterExpressionEventArgs.QueryName property to identify the query for which the event has been raised.

Note

The SqlDataSource.CustomizeFilterExpression event is fired only for queries represented by the TableQuery class.

You can also handle the SqlDataSource.ConfigureDataConnection event to specify connection parameters on the fly.

Inheritance

Object EventArgs CustomizeFilterExpressionEventArgs

See Also

CustomizeFilterExpressionEventArgs Members

DevExpress.DataAccess.Sql Namespace