Skip to main content
Tab

ASPxGridViewBehaviorSettings.AllowFixedGroups Property

Specifies whether a top group row is fixed when a user scrolls data rows.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.2.dll

Declaration

[DefaultValue(false)]
public bool AllowFixedGroups { get; set; }

Property Value

Type Default Description
Boolean false

true to fix a top group row; otherwise, false.

Property Paths

You can access this nested property as listed below:

Object Type Path to AllowFixedGroups
ASPxGridView
.SettingsBehavior .AllowFixedGroups
GridViewProperties
.SettingsBehavior .AllowFixedGroups

Remarks

Set the AllowFixedGroups property to true to fix a top group row when a user scrolls data rows. To indicate the fixed group row, the grid displays a special image within this row. Specify the FixedGroupRow property to customize the image.

For more information on grouping in the grid, refer to the following topic: ASPxGridView - Group Data.

Run Demo: ASPxGridView - Fixed Groups

FixedGroups

<dx:ASPxGridView ID="Grid" ClientInstanceName="grid" runat="server" KeyFieldName="CustomerID"
    AutoGenerateColumns="false">
    <Columns>
        <dx:GridViewDataColumn FieldName="ContactName" />
        <dx:GridViewDataColumn FieldName="CompanyName" />
        <dx:GridViewDataColumn FieldName="City" />
        <dx:GridViewDataColumn FieldName="Region" />
        <dx:GridViewDataColumn FieldName="Country" GroupIndex="0" />
    </Columns>
    <Settings ShowGroupPanel="True" VerticalScrollBarMode="Visible" VerticalScrollableHeight="300" />
    <SettingsBehavior AllowFixedGroups="true" />
</dx:ASPxGridView>

Note

In Endless Paging mode, the grid does not support fixed groups.

See Also