Reputation: 21
Please i need change background color of gridcontrol, i tried "" in the gridcontrol and in the CardView, but though I always try out white.
Upvotes: 0
Views: 2196
Reputation: 44038
<Window ...
xmlns:dxgt="http://schemas.devexpress.com/winfx/2008/xaml/grid/themekeys">
<Window.Resources>
<ControlTemplate x:Key="{dxgt:TableViewThemeKey IsThemeIndependent=true, ResourceKey=DataPresenterTemplate}" TargetType="{x:Type dxg:DataPresenter}">
<Border Background="Red">
<ContentPresenter />
</Border>
</ControlTemplate>
</Window.Resources>
<dxg:GridControl .../>
</Window>
Taken from http://www.devexpress.com/Support/Center/Question/Details/Q332901
Upvotes: 1