设置单元格的背景色:

<dxg:GridColumn.CellStyle>
  <Style BasedOn="{StaticResource {dxgt:GridRowThemeKey ResourceKey=LightweightCellStyle}}" TargetType="{x:Type dxg:LightweightCellEditor}">
    <Setter Property="Background" Value="{Binding Path=RowData.Row.BackgroundColor}"/>
  </Style>
</dxg:GridColumn.CellStyle>

posted on 2018-03-01 15:25  庭前竹  阅读(471)  评论(0编辑  收藏  举报