SfDataGridBehaviorFilterPredicatesToSQLFilter Method
Converts the filter predicates of the specified GridColumn and DataGrid into a SQL filter expression.
Namespace: Aliquo.Windows.ControlsAssembly: Aliquo.Windows.Controls (in Aliquo.Windows.Controls.dll) Version: 5.0.9179.22656
public static string FilterPredicatesToSQLFilter(
SfDataGrid grid,
GridColumn column,
List<FilterPredicate> filterPredicates = null,
string fieldName = null,
bool useSquareBrackets = true
)
Public Shared Function FilterPredicatesToSQLFilter (
grid As SfDataGrid,
column As GridColumn,
Optional filterPredicates As List(Of FilterPredicate) = Nothing,
Optional fieldName As String = Nothing,
Optional useSquareBrackets As Boolean = true
) As String
- grid SfDataGrid
- Control SfDataGrid.
- column GridColumn
- GridColumn of the SfDataGrid to process.
- filterPredicates ListFilterPredicate (Optional)
- List of filter predicates. If not specified, the predicates of the column are assumed.
- fieldName String (Optional)
- Name that is assigned as a field to the filter predicates. If not specified, assumes MappingName of the column.
- useSquareBrackets Boolean (Optional)
- Indicates whether to use square brackets in field names.
StringString containing the SQL filter expression, or
if the column is not filtered.