We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Alternating row style with highlighting

Hello, 

i have simple question. I set highlighting in SfDataGrid, but if is set also AlternatingRowStyle, rows with alternating styles doesn't get highlight. In right case, all rows must colorize over highlighting color like in this table http://www.permadi.com/tutorial/cssHighlightTableRow/

Attachment: TestWPF_ef03c966.zip

1 Reply

SP Sowndaiyan Paulpandi Syncfusion Team February 29, 2016 07:35 AM UTC

Hi Martin,

Thanks for contacting Syncfusion Support.

In SfDataGrid, you can resolve your highlighting problem on AlternateRowStyle by setting the “Opacity” like the below code example,

XAML


<
Window.Resources>

        <Style x:Key="alternatingRowStyle" TargetType="{x:Type syncfusion:VirtualizingCellsControl}">

            <Setter Property="Background">

                <Setter.Value>

                    <SolidColorBrush Opacity="0.5" Color="#F7F7F7F7" />

                </Setter.Value>

            </Setter>

        </Style>

    </Window.Resources>


Regards,

Sowndaiyan


Loader.
Live Chat Icon For mobile
Up arrow icon