Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1100
How to remove Office2k7Blue row lines
posted

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.

Parents
No Data
Reply
  • 69686
    Verified Answer
    posted

    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}">

    <Setter Property="BorderThickness" Value="0"/>

    </Style>

    Please note, that you have to define those styles in the Resources of the XamDataGrid so that they can override the theme.

Children