windowsforms-devexpress-dot-xtragrid-dot-columns-dot-optionscolumnfilter-2ded79d4.md
Gets or sets data field (column) names separated by a comma, semicolon, space or tab character by which filter values are grouped in the column’s filter menu.
Namespace : DevExpress.XtraGrid.Columns
Assembly : DevExpress.XtraGrid.v25.2.dll
NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation
[DefaultValue("")]
[XtraSerializableProperty]
public virtual string PopupExcelFilterGrouping { get; set; }
<DefaultValue("")>
<XtraSerializableProperty>
Public Overridable Property PopupExcelFilterGrouping As String
| Type | Default | Description |
|---|---|---|
| String | String.Empty |
A String value specifying data field names separated by a comma, semicolon, space or tab character by which filter values are grouped in the column’s filter menu.
|
You can access this nested property as listed below:
| Object Type | Path to PopupExcelFilterGrouping |
|---|---|
| GridColumn |
.OptionsFilter .PopupExcelFilterGrouping
|
Use the PopupExcelFilterGrouping property to group filter values in the current column’s filter menu by another column. The code snippet below groups cities by countries.
colCity.OptionsFilter.PopupExcelFilterGrouping = "Country;City";
colCity.OptionsFilter.PopupExcelFilterGrouping = "Country;City"
As a result, filter values are displayed in a tree structure.
In the case of a Code First data source, you can annotate data fields with the FilterGroup attribute using the same syntax in the attribute parameter.
[Utils.Filtering.FilterGroup("Country;City")]
public string City { get; set; }
<Utils.Filtering.FilterGroup("Country;City")>
Public Property City As String
See Also