Skip to main content
Tab

ASPxFilterControlBase.GetFilterExpressionForMsSql() Method

Returns the filter expression for a MS SQL Server database.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.2.dll

Declaration

public string GetFilterExpressionForMsSql()

Returns

Type Description
String

A string value that is the filter expression.

Remarks

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