Blogs

Gary's Blog

XAF Cookbook #4 – Customise the Default Detail View for Your BO

     

Problem

You have created you own custom business object but you do not like the default layout of the details view.

Solution

Use the Model Editor (either at design time or runtime) or access the Layout Control in code to affect the required changes.

Discussion

At design time, open the Model Editor and navigate to the Views –> YourBO_DetailsView –> Layout node. Right click on the right hand pane and select “Customize Layout”. Drag and drop the elements where they are required.

At runtime select Tools –> Model Editor and follow the steps above.

You can also access the Layout Control in code and affect the changes you require.

Full details of these three options can be found in our documentation.

Technorati tags:
Digg This
Published Sep 04 2008, 03:54 PM by Gary Short (DevExpress)
Filed under: ,
Technorati tags: XAF, XAF Cookbook
Bookmark and Share

Comments

 

Alexander Koger said:

Hi Gary,

in XAF I have the problem, that in Master-Detail-Scenarios and Inheritence the Detail-Controller enables the User to create Items for all descend types.

How can I control that behaviour?

Regards,

Alex

December 10, 2008 8:57 AM
More from DevExpress
Live Chat
Have a pre-sales question?
Need assistance with your evaluation?
We are here to help.
Chat is one of the many ways you can contact members of the DevExpress Team. We are available Monday-Friday between 8:30am and 5:00pm Pacific Time.
If you need additional product information, require pre-sales assistance, or want help with your order, write to us at info@devexpress.com or call us at
+1 (818) 844-3383.