开发者

DataForm IsItemChanged does not reset after SubmitChanges on datasource

I am creat开发者_开发问答ing a silverlight app using the RIA services and the dataform. Everything works ok except that the dirty flag in the header of the dataform remains visible after I submit changes on my 'DomainDataSource'. The changes do get commited to the database but the dataform does not notice this and keeps the dirty flag. Is there a way to reset the dataform programmaticaly or to never show the asteriks?

Looking in the debugger is see that the Dataform.IsItemChanged property remains true after submitting changes back to the server.


This is probably because EndEdit was not called on the entity, entity implements IEditableObject. You are probably doing BeginEdit but you are not calling EndEdit and you are submitting your changes before EndEdit was called by data form.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜