How to display a child product’s attribute value at a configurable product’s grid panel?

We can achieve this via overriding two files.
1.  Magento\ConfigurableProduct\Ui\DataProvider\
Product\Form\Modifier\ConfigurablePanel.php

Find function getRows() and add the heading. Like :- ‘manufacturer_country’ => $this->getColumn(‘manufacturer_country’, __(‘Manufacturer Country’)),

Working Example for ConfigurablePanel.php

2. Magento\ConfigurableProduct\Ui\DataProvider\
Product\Form\Modifier\Data\AssociatedProducts.php

Here we need to call attribute value associated with attribute code

Find function prepareVariations() and call the product attribute value. Like :- ‘manufacturer_country’ => $this->escaper->escapeHtml($product->getManufacturerCountry()),

Working Example for AssociatedProducts.php

Note : If attribute type is dropdown or anything else then need to call as per it’s syntax.