GridOptionsBehavior.AllowPartialGroups Property
Gets or sets whether or not to hide group rows if they contain only a single data row.
Namespace: DevExpress.XtraGrid.Views.Grid
Assembly: DevExpress.XtraGrid.v19.1.dll
Declaration
[DefaultValue(DefaultBoolean.Default)]
[XtraSerializableProperty]
public virtual DefaultBoolean AllowPartialGroups { get; set; }
Property Value
Type | Default | Description |
---|---|---|
DefaultBoolean | **Default** | A value that specifies whether or not to hide group rows if they contain only a single data row. The DefaultBoolean.Default property is equivalent to False. |
Available values:
Name | Description |
---|---|
True | Corresponds to a Boolean value of true. |
False | Corresponds to a Boolean value of false. |
Default | The value is determined by the current object’s parent object setting (e.g., a control setting). |
Property Paths
You can access this nested property as listed below:
Object Type | Path to AllowPartialGroups |
---|---|
GridView |
|
Remarks
The AllowPartialGroups property allows you to save screen space by hiding those group rows that contain a single data row. In these cases, the data rows will be displayed in place of group rows.
When the AllowPartialGroups mode is enabled, the following takes place.
- Unique data groups are separated with blue lines. Blue line separators are also used in certain other cases (e.g., to separate preview sections, a bottom new item row, etc.).
- Grouped column headers are displayed in the Group Panel and Column Header Panel simultaneously (regardless of the GridOptionsView.ShowGroupedColumns setting).
If the GridOptionsBehavior.AlignGroupSummaryInGroupRow option is set to Default or True, all group summaries (even those that are positioned in group footers) are forcibly displayed in group rows under the corresponding column headers, and group footers are hidden. This applies only to non-hidden group rows.
If the GridOptionsBehavior.AllowFixedGroups option is enabled, the AllowPartialGroups property is not in effect and group rows are never hidden.
Note
In AllowPartialGroups mode, data grouping by multiple columns is not supported.