FilterEditorControl.QueryGroupTypes Event
Allows you to prohibit group types.
Namespace: DevExpress.Xpf.Core.FilteringUI
Assembly: DevExpress.Xpf.Grid.v20.1.dll
NuGet Packages: DevExpress.WindowsDesktop.Wpf.Grid.Core, DevExpress.Wpf.Grid.Core
Declaration
Event Data
The QueryGroupTypes event's data class is QueryGroupTypesEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
AllowAnd | Gets or sets whether to allow users to specify the And logical operator in the FilterEditorControl. |
AllowNotAnd | Gets or sets whether to allow users to specify the NotAnd logical operator in the FilterEditorControl. |
AllowNotOr | Gets or sets whether to allow users to specify the NotOr logical operator in the FilterEditorControl. |
AllowOr | Gets or sets whether to allow users to specify the Or logical operator in the FilterEditorControl. |
Filter | Gets the current filter criteria specified in the FilterEditorControl. |
Remarks
Use QueryGroupTypes event to prohibit group types. The following code sample prohibits users from specifying the Or and NotOr logical operators:
<dxg:TableView x:Name="view">
<dxg:TableView.FilterEditorTemplate>
<DataTemplate>
<dxfui:FilterEditorControl QueryGroupTypes="OnQueryGroupTypes" />
</DataTemplate>
</dxg:TableView.FilterEditorTemplate>
</dxg:TableView>
void OnQueryGroupTypes(object sender, QueryGroupTypesEventArgs e) {
e.AllowNotAnd = false;
e.AllowNotOr = false;
}
See Also