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.
Unfortunately, activation email could not send to your email. Please try again.

Alternating row style with highlighting

Thread ID:

Created:

Updated:

Platform:

Replies:

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

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 02:35 AM

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.

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.

;