WPF DataGrid binding in DataTemplate - MVVM
I'm currently trying to do some binding inside of a datagrid but I'm having problems getting up to the level of DataContext of the view. 

Here is the code:    

    <DataGridTemplateColumn.CellEditingTemplate>
    <DataTemplate>
    <ComboBox SelectedItem="{Binding Column}"
    ItemsSource="{Binding ColumnList,Source={StaticResource ViewModel}}" /></DataTemplate>
    </DataGridTemplateColumn.CellEditingTemplate>

Any ideas on whats wrong? The View's Viewmodel is connected in the code behind. 



WPF DataGrid binding in DataTemplate - MVVM
===

I'm currently trying to do some binding inside of a datagrid but I'm having problems getting up to the level of DataContext of the view. 

Here is the code:    

    <DataGridTemplateColumn.CellEditingTemplate>
    <DataTemplate>
    <ComboBox SelectedItem="{Binding Column}"
    ItemsSource="{Binding ColumnList,Source={StaticResource ViewModel}}" /></DataTemplate>
    </DataGridTemplateColumn.CellEditingTemplate>

Any ideas on whats wrong? The View's Viewmodel is connected in the code behind. 


