This example demonstrates how to prevent a user from invoking a Detail View of an object in a List View.
To allow users to edit objects directly in a List View, enable the in-place edit and split layout functionality.
Call the Frame.GetController method to access an instance of the ListViewProcessCurrentObjectController class and disable the ListViewProcessCurrentObjectController.ProcessCurrentObjectAction property.
This example applies only when an XAF application displays a Detail View of an object after a user double-clicks this object in a List View, or focuses an object in a List View and presses Enter. To handle other scenarios, extend the controller's code. For example, if you do not want your XAF application to invoke a Detail View after a user clicks the New button to create an object in a List View, handle the NewObjectViewController.ObjectCreating event and set the ObjectCreatingEventArgs.ShowDetailView property to false.
- Core - Make it easier to prevent showing a DetaiView from a ListView permanently or on a condition
- List View Edit Modes
(you will be redirected to DevExpress.com to submit your response)