The Source property of the DataGridCollectionView is bound to the XmlData property, which according to the binding is located in the parent Window:
Source="{Binding RelativeSource={RelativeSource AncestorType={x:Type Window}}, Path=XmlData}"/>
That said, the XmlData property should be placed in your Window that corresponds to the XAML code-behind page. If you are using a Page (or any other container), then you can simply change the binding accordingly.
Technical Writer - Xceed Software
Of all the things I've lost, I miss my mind the most. - Mark Twain