Bind DataGridColumns Header to DataContext of the window
问题 I have a DataGrid and want to bind the Header -property to a property of my windows DataContext but I did not get it working. Binding can be such a pain as (for me) it is never clear which context this has when simply using Binding . I know that the "Context" in the Binding={} is a single element of the DataGrid s ItemsSource . But what is the "Context" for Header={Binding ???} ? I've already tried: Header="{Binding Path=DataContext.MyProperty, RelativeSource={RelativeSource Self}} Header="