Ads 468x60px

Wednesday, April 10, 2013

XAF : Display Collection Properties in an Edit Mode Detail View for an ASP.NET Application

To display collection properties when we have 1-M relation between two classes 'ClassA' and 'ClassB':

  1. Override 'OnLoggingOn' Sub in 'WebApplication.vb'
  2. add this statement to the sub
    CType(MyBase.ShowViewStrategy, ShowViewStrategy).CollectionsEditMode = DevExpress.ExpressApp.Editors.ViewEditMode.Edit


Collection properties will be displayed in both the View and Edit modes. Collection properties will be editable in Edit mode and read-only in View mode: