TableView.TopPanelBackground Property
Gets or sets the background brush for the top panel area that contains the Group Panel and Search Panel. This is a dependency property.
Namespace: DevExpress.Xpf.Grid
Assembly: DevExpress.Xpf.Grid.v26.1.dll
Declaration
Property Value
| Type | Default | Description |
|---|---|---|
| Brush | null | A Brush value. |
Remarks
If the TopPanelBackground property is null, the TableView applies the current theme’s background brush.
Example
The following example sets a background brush for the top panel:

<dx:ThemedWindow x:Class="TopPanelBackgroundExample.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
... >
<dxg:GridControl>
<dxg:GridControl.View>
<dxg:TableView
ShowSearchPanelMode="Always"
TopPanelBackground="IndianRed"/>
</dxg:GridControl.View>
</dxg:GridControl>
</dx:ThemedWindow>
See Also