Skip to content

DevExpress-Examples/XAF_how-to-prevent-a-detailview-from-being-shown-for-a-listview-record

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XAF - Prevent Showing a Detail View of a List View Object

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.

Implementation Details

Call the Frame.GetController method to access an instance of the ListViewProcessCurrentObjectController class and disable the ListViewProcessCurrentObjectController.ProcessCurrentObjectAction property.

Additional Information

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.

Files to Review

Documentation

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)

About

Prevent a DetailView from being shown for a ListView record in eXpress App Framework.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 10