This seems alright, and it works when I display my
contactlist in display mode.
Now comes the tricky part.
If I create a new instance of my contactperson on the model
(since it’s xml based this isn’t a big problem), the
new instance won’t show up in the datagrid, even thought
I’ve got my databinding set to my model.
Can you help me find a suitable solution or a workaround that
makes it possible to update (or refresh) the datagrid manually or
using a local pointer to the model’s contactperson instance?
I have seen problems trying to bind to an attribute in an xml
node with the @ operator. I have been able to get around this by
using the attribute property to get at the attribute value like
is changed to:
I am not sure if this is what is preventing your dataGrid
from updating, but it might be worth a try with your model.