Current filter:
                                You should refresh the page.
                                Support Center
                                0
                                  • Hi,

                                            After specifying row templates for odd and even rows, I am not able to see the default row style for selected rows.

                                           Can you please advise to specify a row style for selected rows?

                                    Thanks,
                                    Manu

                                DevExpressTreeListSample.zip
                                0

                                Hello Manu,

                                Thank you for your question. Simply make your borders transparent for the focused row, this will solve the issue:

                                	
                                [C#]
                                <DataTemplate x:Key="oddRowTemplate"> <Border Margin="1" x:Name="border" Background="#EAEAEA"> <ContentPresenter Name="content" Content="{Binding}" ContentTemplate="{Binding View.DefaultDataRowTemplate}" /> </Border> <DataTemplate.Triggers> <DataTrigger Binding="{Binding Path=IsFocused}" Value="True"> <Setter Property="Background" Value="Transparent" TargetName="border"/> </DataTrigger> </DataTemplate.Triggers> </DataTemplate> <DataTemplate x:Key="evenRowTemplate"> <Border Margin="1" x:Name="border" Background="#FFFFFF"> <ContentPresenter Name="content" Content="{Binding}" ContentTemplate="{Binding View.DefaultDataRowTemplate}" /> </Border> <DataTemplate.Triggers> <DataTrigger Binding="{Binding Path=IsFocused}" Value="True"> <Setter Property="Background" Value="Transparent" TargetName="border"/> </DataTrigger> </DataTemplate.Triggers> </DataTemplate>

                                Let me know if you need further assistance.

                                Thank you, Marina

                                0

                                :) it works. thanks!

                                0

                                Welcome!

                                To start a chat you should create a support ticket


                                If you need additional product information, write to us at info@devexpress.com or call us at +1 (818) 844-3383

                                FOLLOW US

                                DevExpress engineers feature-complete Presentation Controls, IDE Productivity Tools, Business Application Frameworks, and Reporting Systems for Visual Studio, along with high-performance HTML JS Mobile Frameworks for developers targeting iOS, Android and Windows Phone. Whether using WPF, Silverlight, ASP.NET, WinForms, HTML5 or Windows 8, DevExpress tools help you build and deliver your best in the shortest time possible.

                                Copyright © 1998-2014 Developer Express Inc.
                                All trademarks or registered trademarks are property of their respective owners