This project is read-only.

Update datagrid when source xml changes

Sep 2, 2009 at 4:26 AM

I have a datagrid which is populated from a simple xml file.  The grid is readonly, but the xml file is periodically updated (replaced) from an external system.  I need the grid to update the cells that change WHEN the xml file changes.  My understanding is that if the xml file is bound to the grid properly, I should be able to call the "ResetBindings" method (or something similar), and the grid update will take care of itself.  I've been messing around with the xml binding sample (#29), but haven't had any luck.

Has anyone had a similar need, or have any ideas?


Sep 3, 2009 at 9:36 AM

> but haven't had any luck.

One option would be to completely reload the grid, that would work if xml is extremely small.

If you need to work with bigger xmls, you'll have to work some kind of solution where only part of a changed xml is reloaded