[Expand]General Information
[Collapse]WinForms Controls
  Prerequisites
 [Expand]What's Installed
 [Expand]Build an Application
 [Collapse]Controls and Libraries
  [Expand]Forms and User Controls
  [Expand]Messages, Notifications and Dialogs
  [Expand]Editors and Simple Controls
  [Expand]Ribbon, Bars and Menu
  [Expand]Application UI Manager
  [Expand]Docking Library
  [Expand]Data Grid
  [Collapse]Vertical Grid
   [Expand]Binding to Data
   [Expand]Data Layout: Records, Rows and Cells
   [Expand]Layouts
   [Expand]Data Editing and Validation
    Filtering
    Formatting Values
   [Expand]Drag and Drop
   [Collapse]Appearance and Custom Painting
    [Collapse]Appearances
      Style Schemes
      Customizing Appearances of Individual Rows
      Customizing Appearances of Individual Cells
      Specifying Styles Using Custom Painting Events
    [Expand]Custom Painting
    [Expand]Alpha Blending and Background Images
   [Expand]Visual Elements
   [Expand]Design-Time Features
   [Expand]End-User Capabilities
    Hit Information
    Batch Modifications
   [Expand]Member Tables
   [Expand]Examples
  [Expand]Property Grid
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Chart Control
  [Expand]Diagrams
  [Expand]Gauges
  [Expand]Map Control
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]Printing-Exporting
  [Expand]PDF Viewer
   Reporting
  [Expand]Snap
  [Expand]TreeMap Control
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[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]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Style Schemes

The vertical grid controls (VGridControl and PropertyGridControl) give you the ability to simultaneously change the styles of all their elements. This can be done by applying a style scheme to a control. A style scheme is a set of appearance settings for all the vertical grid's elements. There are two types of style schemes: predefined style schemes (style formats) and manually created style schemes (style layouts). This topic describes how to use both types. It's assumed that you are familiar with the Appearance mechanism introduced in the Appearances topic.

Expanded Using Style Formats

The vertical grid controls provide multiple style schemes which you can easily apply at design time via the Style Schemes Page of the VerticalGrid Designer.

When a style scheme is applied to the control the appearance settings specified by the VGridControlBase.Appearance object are modified according to the selected scheme. The following image show the appearance settings used to paint category rows after the Vagabond paint scheme has been applied:

To apply predefined style schemes at runtime the following code can be used:

Expanded Using Style Layouts

The vertical grids also allow you to manually create style schemes. This can be done by adjusting the desired appearance settings on the Appearance Page page of the VerticalGrid Designer and saving the appearances to an XML file using the Save Appearance Layout... button. Use the Load Appearance Layout... button to restore saved appearance settings:

You can also save and restore the appearance settings at runtime. This can be done using the BaseAppearanceCollection.SaveLayoutToXml and BaseAppearanceCollection.RestoreLayoutFromXml methods of the VGridControlBase.Appearance object.

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