我想改变gridcontrol默认的行颜色,不成功。部分代码如下:
<dxg:GridControl x:Name="_gridControl" AutoPopulateColumns="False" ColumnsPopulated="_gridControl_ColumnsPopulated" Height="150" >
<dxg:GridControl.View>
<dxg:TableView x:Name="_tableView" AllowSorting="False" ShowGroupPanel="False" AutoWidth="true" NewItemRowPosition="Bottom" RowIndicatorContentTemplate="{StaticResource rowIndicatorContentTemplate}">
<dxg:TableView.RowStyle>
<Style TargetType="dxg:GridRowContent">
<Setter Property="Background" Value="Red" />
<Setter Property="Foreground" Value="Red" />
</Style>
</dxg:TableView.RowStyle>