我使用ObjectListView。并使用方法 RefreshObject() 更新唯一修改的对象。
// The difference between associations and updatedAssociations is only in
// one item, which ID field remains the same.
// So i find an updated item by ID in the associations (before updating).
//And say Object ListView to to refresh this item.
var associationToUpdate = associations.References.Where(
x => x.ID == associationIDToUpdate).FirstOrDefault();
olvAssociations.RefreshObject(associationToUpdate);
// And only after this set the model to updated model
associations = updatedAssociations;
但什么也没有发生。有人知道这是怎么回事吗?