Method SetDefaultFilterOperator
SetDefaultFilterOperator<T>(RadGridView, FilterOperator, params Expression<Func<T, object>>[])
Sets the default filter operator for the specified columns in the RadGridView control.
public static RadGridView SetDefaultFilterOperator<T>(this RadGridView control, FilterOperator filterOperator, params Expression<Func<T, object>>[] nameExpressions)
Parameters
control
RadGridViewThe RadGridView control.
filterOperator
FilterOperatorThe filter operator to set as default.
nameExpressions
Expression<Func<T, object>>[]The expressions to get the names of the columns.
Returns
- RadGridView
The RadGridView control with the default filter operator set.
Type Parameters
T
The type of the data item.
SetDefaultFilterOperator(RadGridView, FilterOperator, params string[])
Sets the default filter operator for the specified columns in the RadGridView control.
public static RadGridView SetDefaultFilterOperator(this RadGridView control, FilterOperator filterOperator, params string[] columnNames)
Parameters
control
RadGridViewThe RadGridView control.
filterOperator
FilterOperatorThe filter operator to set as default.
columnNames
string[]The names of the columns.
Returns
- RadGridView
The RadGridView control with the default filter operator set.