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

BaseView.PaintStyleName Property

Gets or sets the paint style name for the current View.

Namespace: DevExpress.XtraGrid.Views.Base

Assembly: DevExpress.XtraGrid.v19.1.dll


public virtual string PaintStyleName { get; set; }

Property Value

Type Default Description


A String value specifying the name of the paint style applied to the current View.


This property is used to specify the manner in which scrollbars, borders and buttons are drawn for the current View. The names and appearance of the predefined styles are listed below.

Value Description Image
“Default” The appearance of the View’s elements is specified by the GridControl.LookAndFeel property settings.
“WindowsXP” View elements are painted using the currently applied XP theme. If the operating system is not Windows XP or the Windows Classic theme is currently used, the View is painted using the “Flat” style. BaseView PaintStyleName WindowsXP
“MixedXP” The View style is the same as “WindowsXP”, but column headers, band headers, indicator panel, footer, group footers and group expand buttons are painted flat. BaseView PaintStyleName MixedXP
“Style3D” Grid elements are displayed using 3D. BaseView PaintStyleName Style3D
“UltraFlat” Borders are flat. Buttons are highlighted when hottracked. BaseView PaintStyleName UltraFlat
“Flat” View elements are painted flat. BaseView PaintStyleName Flat
“Office2003” View elements are painted using the scheme introduced in MS Office 2003. BaseView PaintStyleName Office2003
“Web” Web painting scheme. BaseView PaintStyleName Web
“Skin” View elements are painted using the skin specified by the UserLookAndFeel.SkinName property of the GridControl.LookAndFeel object. BaseView PaintStyleName Skin

If the string assigned to the PaintStyleName property doesn’t match any of the strings listed above, the View will be painted using the “Flat” style.

By default, inplace editors assigned to View cells are painted using the style settings defined by the PaintStyleName property. To change the default behavior, you need to customize the RepositoryItem.LookAndFeel property of the repository item representing the editor.

To set a specific paint style for all Views at once, use the GridControl.SwitchPaintStyle method.

See Also