Skip to main content

Group Row

Group rows appear when grouping is applied to a View. Each group row corresponds to a value in a field by whose values the View is grouped. Group rows can be expanded/collapsed to show/hide data rows that correspond to a particular grouping value.

Feature

Related Members

Content

By default, group rows display the corresponding column’s caption, its value and the specified group summaries. You can specify any custom text to display within group rows by handling the corresponding custom draw event or substitute only column value display text using the OnGetDisplayText event.

Appearance

The common style for all group rows is set via a View’s Styles.Group property. You can also provide styles for individual group rows (e.g. rows corresponding to a particular grouping level) by handling the View’s Styles.OnGetGroupStyle event. Note that both the property and the event affect both the group row and the corresponding row level indent.

The background bitmap for group rows can be set via the View’s BackgroundBitmaps.Group property.

Custom Draw

The View’s OnCustomDrawGroupCell event. Note that this event doesn’t affect row level indents.

Layout

The View’s OptionsView.GroupRowStyle and OptionsView.GroupRowHeight properties.

Behavior

The View’s OptionsBehavior.FixedGroups property.