WPF binding problem in datagrid header
Hi, so I have set up a viewmodel and a view. The viewmodel is referenced inside the view's XAML as Page.DataContext. The viewmodel has INotifyPropertyChanged implemented and the necessary properties are public and have a getter and are set to a string value. Now when I am binding the value to the Header property of the datagrid column ("DataGridTextColumn"), it does not show up. However the property "Binding" where a property of the viewmodel's list of persons is bound, it works perfectly. By debugging I found this message: Severity Count "Cannot find governing FrameworkElement or FrameworkContentElement for target element." Data Context: null
I have already tried setting the DataContext via the relative source, changing merely anything i could think of, but im stumped. Please help me
I have already tried setting the DataContext via the relative source, changing merely anything i could think of, but im stumped. Please help me



