Skip to main content
.NET 8.0+

DevExpress v25.1 Update — Your Feedback Matters

Our What's New in v25.1 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

How to: Configure Bands in a Grid List Editor

  • 2 minutes to read

This topic describes how to group grid columns using bands in an XAF application.

Tip

This topic describes a scenario based on the DemoTask List View from the MainDemo.EF.Core project that ships with XAF. You can find this demo in the following folder: %PUBLIC%\Documents\DevExpress Demos 25.1\Components\XAF\MainDemo.NET.EFCore.

  1. In the MainDemo.Module project, run the Model Editor for the Model.DesignedDiffs.xamfl file. In the node tree, navigate to the Views | MainDemo.Module.BusinessObjects | DemoTask | DemoTask_ListView node.

  2. Select the BandsLayout child node. Set the Enable property to true.

    Bands_BandsLayout.Enable

  3. You can now expand the BandsLayout node to access its child nodes (grid columns). To add a band, right-click BandsLayout and choose Add… | Band.

    Bands_AddBand

  4. Select the newly added node and set its Id to TaskDetails.

    XAF, Specify Band Id in Model Editor, DevExpress

    Note

    XAF generates the IModelBand.Caption property value automatically based on the Id value. You can change the caption if necessary.

  5. Select columns that you want to add to the TaskDetails band (hold the CTRL key and click the corresponding nodes). Drag the selected columns to the TaskDetails band node.

    XAF, Add Columns to a Band in Model Editor, DevExpress

  6. Add another band and name it Schedule. Move the remaining columns to the band. Your band structure should look like this:

    XAF, Band Structure in Model Editor, DevExpress

    Tip

    You can add a band inside an existing band to create multi-level band hierarchy.

  7. Run the application.

    ASP.NET Core Blazor Result
    XAF ASP.NET Core Blazor Bands Example, DevExpress
    Windows Forms Result
    XAF Windows Forms Bands Example, DevExpress
See Also