Current filter:
                                You should refresh the page.
                                Support Center
                                0
                                  • I tried to add Object DataSource to my report, but in my project the "add a dataset to the project" in the DataSource-Property Editor disabled is disabled. If I do the same in a new test project it works.

                                0

                                I tried it in a new ASP.NET test project and it is disabled there. It seems to be a problem in ASP.NET projects.

                                0

                                Hello Bruno,

                                Thanks for the update. This behavior is by design.
                                The 'Add Dataset to Project' will always be disabled because of the web project specifics.
                                In a web application, you can only select a DataSet from the existing DataSet objects defined in the project.

                                See a similar issue discussed at: Cannot add Datasource to report. Let me know whether this helps.

                                Thank you,
                                Alex.

                                0

                                Ok, Thank you Alex,

                                In the meentime I try to use a dataset and this seems to work. The problem is that the data in my app is in a object structure (nested ILists). It would theoretically be possible to build a DataSet facade between, but this would be a lot of unnecessary work. Is there a possibility to directly use my custom objects at design time? Or is the usage of the End-User Designer a solution? Is it possible to reference my assembly there?

                                0

                                Hello Bruno,

                                Thanks for the response.
                                To bind report controls using your custom objects schema in a web application, create a corresponding schema separately as an XSD file.
                                Then, use the DataSourceSchema property or the XtraReport.XmlDataPath property in design mode.
                                As a result, you'll be able to use the Field List window, or set bindings using smart tags.
                                Also, you can use the Mail Merge feature. Instead of setting report control's bindings, set its Text property to the Data Field name enclosed in square brackets: [DataFieldName].

                                At runtime, you can update the report's XtraReport.DataSet property using the actual instance of your business object.
                                Let me know whether this makes sense.

                                Thank you,
                                Alex.

                                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