My XamDataGrid is using the Office2k7Blue theme which comes row separation lines. I want to remove those lines but am not sure how to do it.
Thanks.
These lines are the borders of the CellValuePresenters and the DataRecordCellArea. You can remove them with the following styles:
<Style TargetType="{x:Type igDP:CellValuePresenter}">
<Setter Property="BorderThickness" Value="0"/>
</Style>
<Style TargetType="{x:Type igDP:DataRecordCellArea}">
Please note, that you have to define those styles in the Resources of the XamDataGrid so that they can override the theme.
Hi Alex,
Neither of those styles had any effect. I have a sneaky suspicion that it is something Office2k7Blue theme specific.
I am pretty sure this works, because I tested this before sending it. Here is a screenshot of the XamDataGrid with Office2kBlue theme and these two styles in the Resource of the XamDataGrid.
If you still have this problem, please attach a sample project with this issue so that we can look into it
Alex you are quite correct. Your solution worked and my implementation of it didn't because I screwed up. The difference between our apps is that I was already using a DataRecordCellArea styling somewhere else and of course didn't notice it but it's effects overrode your solution. After correcting my mis-implementation your original solution worked perfectly.
Thanks!