[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Collapse]WPF Controls
  Prerequisites
 [Expand]What's Installed
 [Expand]Common Concepts
 [Expand]MVVM Framework
 [Collapse]Controls and Libraries
   Reporting
  [Collapse]Data Grid
   [Expand]Getting Started
   [Expand]Implementation Details
   [Expand]Views
   [Expand]Grid View Data Layout
   [Expand]Binding to Data
   [Expand]Master-Detail Data Representation
   [Expand]Data Editing and Validation
   [Expand]Grouping
   [Expand]Selection
   [Expand]Filtering and Searching
   [Expand]Sorting
   [Expand]Data Summaries
   [Expand]Paging and Scrolling
   [Expand]Focus and Navigation
   [Expand]Conditional Formatting
   [Expand]Drag-and-Drop
   [Collapse]Appearance Customization
     Styles and Templates Overview
     Grid Control Styles
     Grid Elements That Support Templates
     Choosing Templates Based on Custom Logic
     Cell Merging
    [Expand]Column Header Customization
   [Expand]MVVM Enhancements
   [Expand]Printing and Exporting
   [Expand]End-User Interaction
   [Expand]Miscellaneous
   [Expand]Performance Improvement
   [Expand]Design-Time Features
   [Expand]Visual Elements
   [Expand]End-User Capabilities
   [Expand]Examples
  [Expand]Ribbon, Bars and Menu
  [Expand]Charts Suite
  [Expand]Pivot Grid
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Tree List
  [Expand]Gauge Controls
  [Expand]Map Control
  [Expand]Layout Management
  [Expand]Windows Modern UI
  [Expand]Printing-Exporting
  [Expand]Data Editors
  [Expand]Navigation Controls
  [Expand]Spell Checker
  [Expand]Property Grid
  [Expand]PDF Viewer
  [Expand]TreeMap Control
  [Expand]Gantt Control
  [Expand]Diagram Control
  [Expand]Windows and Utility Controls
   Dialogs, Notifications and Panels
  [Expand]Scheduler (legacy)
 [Expand]Scaffolding Wizard
 [Expand]Localization
  Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

Grid Control Styles

This topic describes styles that define the presentation of GridControl's visual elements. Use this information to create custom styles.

Important

GridControl's optimized mode uses special styles and templates for some elements. To learn more, see Optimized Mode and Optimized Mode Styles and Templates.

This topic contains the following sections.

Expanded Common Styles

The following table lists style properties that define the appearance of the GridControl's visual elements.

Visual Element

Property

Description

Target Element (Unoptimized Mode)

Target Element (Optimized Mode)

Data Context (Binding Source)

Auto Filter Row

ColumnBase.AutoFilterRowCellStyle

TableView.AutoFilterRowCellStyle

TreeListView.AutoFilterRowCellStyle

Specifies the style applied to auto filter row cells.

DevExpress.Xpf.Grid.FilterCellContentPresenter

DevExpress.Xpf.Grid.FilterCellContentPresenter

DevExpress.Xpf.Grid.EditGridCellData

New Item Row

TableView.NewItemRowCellStyle

Specifies the style applied to new item row cells.

DevExpress.Xpf.Grid.NewItemRowCellContentPresenter

DevExpress.Xpf.Grid.LightweightNewItemCellEditor

DevExpress.Xpf.Grid.EditGridCellData

Card

CardView.CardStyle

Specifies the style applied to cards.

System.Windows.Controls.ContentControl

System.Windows.Controls.ContentControl

CardData

Column Header

BaseColumn.HeaderStyle

Specifies the style applied to column headers.

GridColumnHeader

GridColumnHeader

GridColumn

ColumnBase.ColumnHeaderContentStyle

DataViewBase.ColumnHeaderContentStyle

Specifies the style applied to column header's content.

DevExpress.Xpf.Grid.HeaderContentControl

DevExpress.Xpf.Grid.HeaderContentControl

Data Cell

ColumnBase.CellStyle

DataViewBase.CellStyle

Specify styles applied to data cells.

CellContentPresenter

DevExpress.Xpf.Grid.LightweightCellEditor

DevExpress.Xpf.Grid.EditGridCellData

Data Row

TableView.RowStyle

Specifies the style applied to data rows.

GridRowContent

RowControl

RowData

Tree List Node

TreeListView.RowStyle

Specifies the style applied to tree list nodes.

Group Row

GridViewBase.GroupRowStyle

GridViewBase.GroupValueContentStyle

Specify styles applied to group rows.

System.Windows.Controls.ContentControl

DevExpress.Xpf.Grid.GroupRowControl

GroupRowData

Group Footer

TableView.GroupFooterRowStyle

Specifies the style applied to group footers.

DevExpress.Xpf.Core.DataContentPresenter

DevExpress.Xpf.Core.DataContentPresenter

DevExpress.Xpf.Grid.GroupSummaryRowData

**Group Summary Item

(Group Row)**

GridViewBase.GroupSummaryContentStyle

Specifies the style applied to group summary items.

System.Windows.Controls.Border

Not supported in optimized mode.

DevExpress.Xpf.Grid.GridGroupSummaryData

TableView.GroupBandSummaryContentStyle

Specifies the style applied to group summary items aligned by bands.

DevExpress.Xpf.Grid.GroupBandSummaryControl

DevExpress.Xpf.Grid.GroupBandSummaryControl

DevExpress.Xpf.Grid.GridGroupSummaryColumnData

TableView.GroupColumnSummaryContentStyle

Specifies the style applied to group summary items aligned by columns.

DevExpress.Xpf.Grid.GroupColumnSummaryControl

DevExpress.Xpf.Grid.GroupColumnSummaryControl

GridSummaryItem.GroupColumnSummaryElementStyle

Specifies the style applied to individual text elements in the group summary item that is displayed within the group row and aligned by a column.

System.Windows.Documents.Run

System.Windows.Documents.Run

DevExpress.Xpf.Grid.GridSummaryDisplayData

GridViewBase.GroupColumnSummaryElementStyle

Specifies the style applied to individual text elements in group summary items that are aligned by columns.

**Group Summary Item

(Group Footer)**

GridSummaryItem.GroupColumnFooterElementStyle

Specifies the style applied to individual text elements in the group summary item that is displayed within the group footer.

System.Windows.Documents.Run

System.Windows.Documents.Run

DevExpress.Xpf.Grid.GridSummaryDisplayData

TableView.GroupColumnFooterElementStyle

Specifies the style applied to individual text elements in the group summary item that is displayed within the group footer.

TableView.GroupFooterSummaryContentStyle

Specifies the style applied to group summary items displayed within group footers.

DevExpress.Xpf.Core.DataContentPresenter

DevExpress.Xpf.Core.DataContentPresenter

DevExpress.Xpf.Grid.GridGroupSummaryColumnData

Total Summary Item

ColumnBase.TotalSummaryContentStyle

Specifies the style applied to total summary items displayed within the column.

DevExpress.Xpf.Grid.TotalSummaryContentPresenter

DevExpress.Xpf.Grid.TotalSummaryContentPresenter

GridColumnData

DataViewBase.TotalSummaryContentStyle

Specifies the style applied to total summary items displayed within the view.

SummaryItemBase.TotalSummaryElementStyle

Specifies the style applied to individual text elements of a total summary item.

System.Windows.Documents.Run

System.Windows.Documents.Run

DevExpress.Xpf.Grid.GridSummaryDisplayData

DataViewBase.TotalSummaryElementStyle

Specifies the style applied to individual text elements of all total summary items within the view.

Fixed Total Summary

SummaryItemBase.FixedTotalSummaryElementStyle

DataViewBase.FixedTotalSummaryElementStyle

Specify styles applied to fixed total summaries.

System.Windows.Documents.Run

System.Windows.Documents.Run

DevExpress.Xpf.Grid.GridSummaryDisplayData

Selection Rectangle

DataViewBase.SelectionRectangleStyle

Specifies the style applied to the Selection Rectangle.

System.Windows.Controls.Border

System.Windows.Controls.Border

Same as the view's

Wait Indicator

DataViewBase.WaitIndicatorStyle

Specifies the style applied to the Wait Indicator.

DevExpress.Xpf.Core.WaitIndicator

DevExpress.Xpf.Core.WaitIndicator

Same as the view's

Expanded MVVM Enhancements

The following table lists style properties that specify the appearance of columns and bands described in the view model. To learn more, see MVVM Enhancements.

Visual Element Property Description Target Element Data Context (Binding Source)
Data Column DataControlBase.ColumnGeneratorStyle Specifies a style for all columns generated using templates. GridColumn Refer to the Binding to a Collection of Columns topic.
BandBase.ColumnGeneratorStyle Specifies a style for all columns within a band generated using templates.
Band Column DataControlBase.BandGeneratorStyle Specifies a style for all bands generated using templates. GridControlBand Refer to the Binding to a Collection of Bands topic.
BandBase.BandGeneratorStyle Specifies a style for all child bands within the current band that were generated using templates.

Expanded Printing Styles

The following table contains the styles applied to visual elements when the grid is printed.

Visual Element

Property

Description

Target Element

Data Context (Binding Source)

Data Cell

ColumnBase.PrintCellStyle

DataViewBase.PrintCellStyle

Specify styles applied to data cells when the grid is printed.

TextEdit

RowData

Column Header

ColumnBase.PrintColumnHeaderStyle

TableView.PrintColumnHeaderStyle

TreeListView.PrintColumnHeaderStyle

Specify styles applied to column headers when the grid is printed.

TextEdit

BaseColumn.HeaderCaption

Group Row

GridViewBase.PrintGroupRowStyle

Specifies the style applied to group rows when the grid is printed.

TextEdit

GroupRowData

Group Footer

TableView.PrintGroupFooterStyle

Specifies style applied to group footers when the grid is printed.

System.Windows.Controls.Control

DevExpress.Xpf.Grid.GroupSummaryRowData

Total Summary Item

ColumnBase.PrintTotalSummaryStyle

DataViewBase.PrintTotalSummaryStyle

Specify styles applied to total summary items when the grid is printed.

TextEdit

GridColumn

Fixed Total Summary Item

DataViewBase.PrintFixedTotalSummaryStyle

Specifies style applied to fixed summary items when the grid is printed.

TextEdit

GridColumn

Band Header

BandBase.PrintBandHeaderStyle

TableView.PrintBandHeaderStyle

TreeListView.PrintBandHeaderStyle

Specify styles applied to band column headers when the grid is printed.

TextEdit

GridColumnData

Expanded See Also

Is this topic helpful?​​​​​​​