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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Alternating row style with highlighting

Thread ID:

Created:

Updated:

Platform:

Replies:

123212 Feb 26,2016 06:12 AM UTC Feb 29,2016 07:35 AM UTC WPF 1
loading
Tags: SfDataGrid
Martin Tichovsky
Asked On February 26, 2016 06:12 AM UTC

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

Sowndaiyan Paulpandi [Syncfusion]
Replied On 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


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;