Skip to main content

ASPxFilterControlBase.GetFilterExpressionForMsSql() Method

Returns the filter expression for a MS SQL Server database.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v23.2.dll

NuGet Package: DevExpress.Web


public string GetFilterExpressionForMsSql()


Type Description

A string value that is the filter expression.


Use the filter expression returned by the GetFilterExpressionForMsSql function to filter a MS SQL Server data source by adjusting the data source’s SelectCommand property value. This can be accomplished in a way similar to that shown in the code example for the ASPxFilterControlBase.GetFilterExpressionForAccess method. Alternatively, you can call the ASPxFilterControlBase.GetFilterExpressionForDataSet function to obtain the filter expression, and apply it via the data source control’s FilterExpression property.

See Also