Skip to main content

Paint Styles

Paint Style sets the base drawing style for the vertical grid. The ExpressVerticalGrid control supports two painting styles: the .NET painting style and Delphi painting style. These styles are defined in TcxvgPaintStyle:

TcxvgPaintStyle = (psdotNet, psDelphi);
.NET painting style Delphi painting style

Note

When the .NET painting style is applied the category row style is used to paint indents before each of its child rows.

Setting the Paint Style

Setting the paint style at design time and runtime.

To set the paint style at design time use the Object Inspector as shown in the image below:

To set the paint style at runtime the TcxvgOptionsView.PaintStyle property is used. The code below demonstrates two possible scenarios:

//...
//setting the .NET painting style
cxDBVerticalGrid1.OptionsView.PaintStyle := TcxvgPaintStyle(psdotNet);
//or
// setting the Delphi painting style
cxDBVerticalGrid1.OptionsView.PaintStyle := TcxvgPaintStyle(psDelphi);