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

DataControlBase.LineBrush Property

Gets or sets a brush that paints grid lines.

Namespace: DevExpress.WinUI.Grid

Assembly: DevExpress.WinUI.Grid.v22.1.dll

NuGet Package: DevExpress.WinUI

Declaration

[DP(null, Handler = "OnLineBrushChanged")]
public Brush LineBrush { get; set; }

Property Value

Type Description
Brush

A brush that paints grid lines.

Remarks

The following code sample changes the color of grid lines:

WinUI Grid - Customize Grid Lines

<dxg:GridControl ...
                 ShowVerticalLines="True" 
                 ShowHorizontalLines="True" 
                 LineBrush="Orange"/>
See Also