Hi Russell,
We have checked
the reported issue with the provided details. This issue occurs
because of ambiguity in the GridCell and it can be resolved by adding a
separate namespace for the DataGrid as shown below,
xmlns:grid="clr-namespace:Syncfusion.UI.Xaml.Grid;assembly=Syncfusion.SfGrid.WPF"
<grid:SfDataGrid ItemsSource="{Binding Items}">
<grid:SfDataGrid.Columns>
<grid:GridCheckBoxColumn MappingName="Selected" AllowEditing="True">
<grid:GridCheckBoxColumn.CellStyle>
<Style TargetType="grid:GridCell">
<Setter Property="Background" Value="LightBlue"/>
</Style>
</grid:GridCheckBoxColumn.CellStyle>
</grid:GridCheckBoxColumn>
<grid:GridTextColumn MappingName="Name">
<grid:GridTextColumn.CellStyle>
<Style TargetType="grid:GridCell">
<Setter Property="Background" Value="LightBlue"/>
</Style>
</grid:GridTextColumn.CellStyle>
</grid:GridTextColumn>
</grid:SfDataGrid.Columns>
</grid:SfDataGrid>
|
Here, we have
attached the modified sample with the above suggestion, please have a look at
this.
Regards,
Dhanasekar M.
If this post is
helpful, please consider Accepting it as the solution so that other members can
locate it more quickly.
Attachment:
GridCell_427c299e.zip