### Managing data of a banded object

With JReport Designer, you can group, sort, and filter data in a banded object easily so as to organize data in the banded object in a more readable way. The operations for setting group, sort and filter conditions for a banded object are similar to those for a table, so you can refer to the following topics on table for details:

- Grouping the data
- Sorting the data
- Filtering the data

Note: When a banded object is created on an HDS, even though you can define some filter conditions on the banded object via the Format Filter dialog, the conditions will not be applied when the banded object runs due to the speciality of HDS. However, if you want to narrow down the data displayed in such kind of banded object, you can make use of the dataset filter.

In addition, you can insert a web control, Expand/Collapse Group, to the group header panel(s) of a banded object so that end users in JReport Web can use the web control to expand/collapse records in groups of the banded object. Note that, this feature works only in continuous page mode.

To insert to a Expand/Collapse Group web control in a banded object:

1. Make sure to uncheck the Page Layout command on the View menu.
2. Select the group header panel, then do one of the following:
   - Click Insert > Web Control > Expand/Collapse Group on the menu bar.
   - Select Expand/Collapse Group from the Insert Control Objects drop-down list on the Insert toolbar.
3. Click on the group header panel, and the web control will be inserted there.

After publishing the report set to JReport Enterprise Server and run it in JReport Web, end users will be able to use the web control which appears like a plus or minus sign to expand or collapse a group (i.e., to show or hide the details of that group). Furthermore, you can use two properties of a group panel to set the expanding/collapsing state of all groups in the corresponding group level. That is, the Expand Detail Data property controls whether or not to expand the groups, and the Shrink Footer property controls whether or not to hide the group footer panel when collapsing the group.