Back to Devexpress

OptionsColumnFilter.AllowFilterModeChanging Property

windowsforms-devexpress-dot-xtragrid-dot-columns-dot-optionscolumnfilter-8f7ea7e5.md

latest3.1 KB
Original Source

OptionsColumnFilter.AllowFilterModeChanging Property

Gets or sets whether a dedicated menu item is available in a column header menu that allows an end-user to change the filter mode for columns.

Namespace : DevExpress.XtraGrid.Columns

Assembly : DevExpress.XtraGrid.v25.2.dll

NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(DefaultBoolean.Default)]
[XtraSerializableProperty]
public virtual DefaultBoolean AllowFilterModeChanging { get; set; }
vb
<DefaultValue(DefaultBoolean.Default)>
<XtraSerializableProperty>
Public Overridable Property AllowFilterModeChanging As DefaultBoolean

Property Value

TypeDefaultDescription
DefaultBooleanDefault

A DefaultBoolean value that specifies that a user can change a column’s filter mode via a menu item.

|

Available values:

NameDescriptionReturn Value
True

The value is true.

|

0

| | False |

The value is false.

|

1

| | Default |

The value is specified by a global option or a higher-level object.

|

2

|

Property Paths

You can access this nested property as listed below:

Object TypePath to AllowFilterModeChanging
GridColumn

.OptionsFilter .AllowFilterModeChanging

|

Remarks

A column’s filter mode (GridColumn.FilterMode) specifies how the column’s values are filtered - by values or display values.

When the AllowFilterModeChanging property is set to True , a dedicated menu item is available in the Column Header Context Menu. It allows an end-user to change the filter mode dynamically at runtime.

The DefaultBoolean.Default value is interpreted as True if a column embeds any lookup editor (A LookUpEditBase class descendant). For other in-place editors, this option is regarded as False.

See Also

FilterMode

OptionsColumnFilter Class

OptionsColumnFilter Members

DevExpress.XtraGrid.Columns Namespace