Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在创建新对象和“保存并关闭”操作之后,当我将 DataAccessMode 更改为 Server 时,它不会在列表视图中显示作为焦点对象创建的对象。
与 DevExpress 的所有东西一样,最好的地方是他们的支持论坛。这里和这里至少有几个有用的答案。
正如丹尼斯解释的那样:
订阅该NewObjectViewController.ObjectCreated事件并在其事件处理程序中订阅该args.ObjectSpace.Committed事件。在 Committed 事件处理程序中,您可以将ListView.CurrentObject 属性设置为上一步中记住的对象 ( args.CreatedObject)。
NewObjectViewController.ObjectCreated
args.ObjectSpace.Committed
ListView.CurrentObject
args.CreatedObject