XtraTreelist:由于对象的当前状态,操作无效 - DragDrop
我有一个 xtraTreeList,其中 keyFieldName 和 ParentFieldName 均已设置
在某些情况下,当将节点拖放到彼此时,我收到消息框的异常
“由于对象的当前状态,操作无效”
并且为此parentField未更新!
例外情况很模糊,有什么建议吗?
I have an xtraTreeList with both keyFieldName and ParentFieldName are set
in some cases while dragDrop nodes to each other i got the exception as a messageBox
"Operation is not valid due to the current state if the object"
and for that the parentField not updated!
the exception is vague, any suggestions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您能否发布此错误的调用堆栈?我确信该异常不是由 XtraTreeList 引发的,而是由其 DataSource 引发的。无论如何,这将为我们提供一个尝试找到此问题原因的起点。
Could you please post a callstack to this error. I am sure, that the exception is not raised by the XtraTreeList but is raised by its DataSource. Anyway, this will give us a starting point in an attempt to find the cause of this problem.
如果您使用 linq to sql,那么请确保父级不在表内循环链接,因为这将需要节点排序来更新实体关系,而它本身不会执行此操作(devex treelist)...
If you are using linq to sql, then make sure the parent is not loop-linked within the table, as this will require the node sorting to update the entity relation, which it does not do by itself (devex treelist)...