Current filter:
                                You should refresh the page.
                                Support Center
                                  • Currently, you can use the following solution that is intended for root ListViews:

                                    using System; using System.Linq; using DevExpress.ExpressApp; using System.Collections.Generic; using DevExpress.ExpressApp.SystemModule; namespace MainDemo.Module.Controllers { public class Q484182 : ViewController<ListView> { private NewObjectViewController newController; public Q484182() { TargetViewNesting = Nesting.Root; } protected override void OnActivated() { base.OnActivated(); newController = Frame.GetController<NewObjectViewController>(); newController.ObjectCreating += Q484182_ObjectCreating; Frame.GetController<ModificationsController>().ModificationsCheckingMode = ModificationsCheckingMode.OnCloseOnly; } private void Q484182_ObjectCreating(object sender, ObjectCreatingEventArgs e) { e.ShowDetailView = false; object newObject = View.ObjectSpace.CreateObject(e.ObjectType); View.CollectionSource.Add(newObject); View.CurrentObject = newObject; } protected override void OnDeactivated() { newController.ObjectCreating -= Q484182_ObjectCreating; newController = null; base.OnDeactivated(); } } }

                                    I have not tested this particular solution under all scenarios supported by XAF, so please use it at your own risk, and feel free to modify and test it further to better meet your business requirements.

                                    See Also:
                                    How do I open a separate DetailView from a nested ListView with MasterDetailMode set to ListViewAndDetailView?

                                0 Solutions

                                Creation Date Rating Importance Sort by

                                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-2018 Developer Express Inc.
                                All trademarks or registered trademarks are property of their respective owners