How to bind property name to which column is binded to pass as command parameter
On each DataGridColumnHeader I have a button that I use to open a popup. As a parameter it sends the column's bound Property name to the ICommand in my ViewModel. This works well for any DataGridTextColumn however when it comes to a DataGridComboBoxColumn the structure is different. How would I solve this? <Button Command="{Binding DataContext.OpenFilterCommand, RelativeSource={RelativeSource AncestorType=UserControl}}" CommandParameter="{Binding Column.Binding.Path.Path, RelativeSource={RelativeSource Mode=TemplatedParent}}"/> Problem Column Definition <DataGridComboBoxColumn Header="Company"