I want to bind some readonly DataGrid column data to the Association Entity via Converter property (convert the collection from this association property to a string). When I try to add / remove items from the collection, the binding does not work. PropertyChanged is also not growing.
contractPosition.PropertyChanged += (s, e2) =>
{
a = 0;
};
contractPosition.ContractToOrderLinks.Remove(link);
Here is a fragment of entityPosition Entity (generated by EF4):
[Association("ContractPosition_ContractToOrderLink", "PositionId", "ContractPositionId")]
[XmlIgnore()]
public EntityCollection<ContractToOrderLink> ContractToOrderLinks
{
get
{
if ((this._contractToOrderLinks == null))
{
this._contractToOrderLinks = new EntityCollection<ContractToOrderLink>(this, "ContractToOrderLinks", this.FilterContractToOrderLinks, this.AttachContractToOrderLinks, this.DetachContractToOrderLinks);
}
return this._contractToOrderLinks;
}
}
Why is PropertyChanged not growing? How can I implement a binding update?
source
share