XAF:启用就地编辑

官方文档:https://docs.devexpress.com/eXpressAppFramework/113249/concepts/ui-construction/views/list-view-edit-modes

下面是官方关于Winform的说明:

In a WinForms XAF application, an existing object can be edited by selecting a row and clicking the property cell, and a new object can be added by clicking the new item row. In an ASP.NET XAF application, an existing object can be edited and a new object can be created by clicking the Edit (InlineEdit_EditButton) and New (InlineEdit_NewButton) buttons located in a row. To enable this functionality, perform the following steps.

  • Invoke the Model Editor, expand the Views and navigate to the child node corresponding to the appropriate List View(打开Model编辑器,展开View,然后导航到与适当的List View相对应的子节点).
  • To enable in-place editing in the selected List View, set the IModelView.AllowEdit property to True(要在选定的列表视图中启用就地编辑,请将IModelView.AllowEdit属性设置为True).
  • To allow end-users to create new objects directly in the List View, set the IModelView.AllowNew property to True and the IModelListViewNewItemRow.NewItemRowPosition property to Top or Bottom. The new item row will be displayed at the top or at the bottom of the List View, respectively(要允许用户直接在List View中创建新对象,把IModelView.AllowNew属性设置为True,同时修改IModelListViewNewItemRow.NewItemRowPosition属性设置为Top或Bottom。新项目行将分别显示在列表视图的顶部或底部).

你可能感兴趣的:(core,eXpressApp,Framework,XAF)