I have the following xmlDataProvider specified. After moving an xmlNode to a different position in it parent node, the datagrid tree does not update..
xdp.Document = doc;
Binding bd = new Binding();
bd.Source = xdp;
theDataGrid.SetBinding(MetrixDataGrid.DataSourceProperty, bd);
{
//MessageBox.Show(e.ToString());
XmlNode row = dr.DataItem as XmlNode;
XmlNode prev = row.PreviousSibling;
parent.InsertBefore(newRow, prev);
parent.RemoveChild(row);
}