In my WPF application I have a ComboBox control that is located inside a Grid Control. In XAML I am assigning a name to the ComboBox:
You can't access controls that are part of a DataTemplate with their name.
You can try to read about some workarounds for example
You can also have a look at the dozens of posts here on SO issuing this topic for example