I am binding from a column header to some properties on a viewmodel. This binding is set up as shown:
<telerik:GridViewDataColumn>
<telerik:GridViewDataColumn.Header>
<Grid>
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<Label Grid.Row="0">Volume flow</Label>
<ComboBox Style="{StaticResource unitGridHeader}" Grid.Row="1" ItemsSource="{Binding Path=UnitVolumeFlow.AvailableUnits}"
SelectedItem="{Binding Path=UnitVolumeFlow.CurrentUnit}" />
</Grid>
</telerik:GridViewDataColumn.Header>
The header is not populated with data when its shown, I also notice that there is no binding error output from Visual Studio. I've done a little research and I see that the DataContext from the grid is propagated to the DataGridViewColumn.DataContext. It seems like that binding evaluation is ignored entirely. What can cause this behaviour and how can I fix it?
<telerik:GridViewDataColumn>
<telerik:GridViewDataColumn.Header>
<Grid>
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<Label Grid.Row="0">Volume flow</Label>
<ComboBox Style="{StaticResource unitGridHeader}" Grid.Row="1" ItemsSource="{Binding Path=UnitVolumeFlow.AvailableUnits}"
SelectedItem="{Binding Path=UnitVolumeFlow.CurrentUnit}" />
</Grid>
</telerik:GridViewDataColumn.Header>
The header is not populated with data when its shown, I also notice that there is no binding error output from Visual Studio. I've done a little research and I see that the DataContext from the grid is propagated to the DataGridViewColumn.DataContext. It seems like that binding evaluation is ignored entirely. What can cause this behaviour and how can I fix it?