First row of grid not showing highlighted color when selected. C# after upgrade to 7.2.1
search cancel

First row of grid not showing highlighted color when selected. C# after upgrade to 7.2.1

book

Article ID: 261727

calendar_today

Updated On:

Products

CA Plex

Issue/Introduction

C# client

In 7.1 after a grid loaded, the first row and all the fields in the row show as a highlighted color.

In 7.2.1, the grid row itself is highlighted when fields don’t fill the whole row

but when the fields fill the whole row it is not highlighted 

 

 

Environment

Release : 7.21

Resolution

Add this to the datagrid resources in the xaml 

<SolidColorBrush x:Key="{x:Static SystemColors.InactiveSelectionHighlightBrushKey}"

                 Color="Transparent"/>

 

<Style TargetType="{x:Type DataGridRow}">

                <Style.Resources>

        <SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="Transparent" />

        <SolidColorBrush x:Key="{x:Static SystemColors.ControlBrushKey}" Color="Transparent" />

        <SolidColorBrush x:Key="{x:Static SystemColors.HighlightTextBrushKey}" Color="Black" />

        <SolidColorBrush x:Key="{x:Static SystemColors.ControlTextBrushKey}" Color="Black" />

       <SolidColorBrush x:Key="{x:Static SystemColors.InactiveSelectionHighlightBrushKey}" Color="Transparent"/>

    </Style.Resources>