Skip to main content
A newer version of this page is available. .

GridOptionsView.GroupDrawMode Property

Gets or sets a value specifying how group rows should be painted.

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v19.1.dll

Declaration

[DefaultValue(GroupDrawMode.Default)]
[XtraSerializableProperty]
public virtual GroupDrawMode GroupDrawMode { get; set; }

Property Value

Type Default Description
GroupDrawMode **Default**

A GroupDrawMode enumeration value specifying how group rows are to be painted.

Available values:

Name Description
Default

The default style. The actual style applied in default mode is controlled by the grid’s paint style (BaseView.PaintStyleName) and skin (GridControl.LookAndFeel). For instance, when the PaintStyleName property is set to “Default” and the “Office 2013” skin is applied, the GroupDrawMode.Office group style is applied.

Standard

The standard style.

GroupDrawMode_Standard

Office2003

The Office 2003-inspired style.

GroupDrawMode_Office2003

Office

The Office 2013-inspired style.

GroupDrawMode_Office

Property Paths

You can access this nested property as listed below:

Object Type Path to GroupDrawMode
AdvBandedGridView
.OptionsView.GroupDrawMode
BandedGridView
.OptionsView.GroupDrawMode
GridView
.OptionsView.GroupDrawMode

Remarks

Use the GroupDrawMode property to specify the paint style for group rows. The paint style typically affects the height of group rows and indents of data groups.

To specify how data rows must be grouped when grouping by a specific column, use the GridColumn.GroupInterval property. See Working with Groups in Code to learn more.

Note

Please be aware that certain draw modes can affect other UI settings due to design specifics. For instance, the GroupDrawMode property, when set to Office2003, ignores the GridView.LevelIndent setting for the very first level (for further levels the indent works as expected).

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GroupDrawMode property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also