Current filter:
                                You should refresh the page.
                                Support Center

                                Generally, there is no standard method to use hierarchical data, i. e. the data that is organized into a tree-like structure (see the Hierarchical model) as a datasource for the XtraReport. However, you can manually implement an effective and generic algorithm that performs data transformation from the hierarchical structure to the relational one.

                                This example demonstrates how it can be done. The core of this example is the RepTreeListHierarchicalDataRelationships.DataSetHelper.HierarchicalListToDataSet<T>() generic method, which transforms a List<T> to the DataSet. Also, please take special note of the fact that the RepTreeListHierarchicalDataRelationships.Form1.GenerateReport() method, which dynamically generates a report, based on the resulting DataSet.

                                Show Implementation Details
                                Select file
                                • Form1.cs
                                • HierarchicalData.cs
                                • HierarchyToDataSet.cs
                                • Program.cs
                                • XtraReport1.cs
                                Select language
                                • C#
                                • VB.NET
                                Select version
                                • 12.2.11 - 17.2.3
                                • 9.1.5 - 12.1.12

                                If you need additional product information, write to us at 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, ASP.NET, WinForms, HTML5 or Windows 10, DevExpress tools help you build and deliver your best in the shortest time possible.

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