Back to Devexpress

GridOptionsView.GroupDrawMode Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-grid-dot-gridoptionsview-fc4000fe.md

latest3.6 KB
Original Source

GridOptionsView.GroupDrawMode Property

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

Namespace : DevExpress.XtraGrid.Views.Grid

Assembly : DevExpress.XtraGrid.v25.2.dll

NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(GroupDrawMode.Default)]
[XtraSerializableProperty]
public virtual GroupDrawMode GroupDrawMode { get; set; }
vb
<DefaultValue(GroupDrawMode.Default)>
<XtraSerializableProperty>
Public Overridable Property GroupDrawMode As GroupDrawMode

Property Value

TypeDefaultDescription
GroupDrawModeDefault

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

|

Available values:

NameDescription
Default

The default style. The actual style applied in default mode is controlled by the skin.

| | Standard |

The standard style.

| | Office2003 |

The Office 2003-inspired style.

| | Office |

The Office 2013-inspired style.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to 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).

See Also

AllowGroup

GroupInterval

Working with Groups in Code

GridOptionsView Class

GridOptionsView Members

DevExpress.XtraGrid.Views.Grid Namespace