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。新项目行将分别显示在列表视图的顶部或底部).
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值