Magento 2. Remove column from customer grid (admin)
So for me it was the confirmation(Confirmed email).
I've updated the confirmation
attribute setting the following
'is_searchable_in_grid' => false,
'is_used_in_grid' => false,
'is_visible_in_grid' => false,
'is_filterable_in_grid' => false
Now this did not work on it's own and I'm not sure that it contributed to my solution, I'm stating it though cause it might be relevant.
What I did was extend the ui_component
itself.
etc/module.xml
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Company_Module" setup_version="0.0.2">
<sequence>
<module name="Magento_Customer" />
</sequence>
</module>
</config>
view/adminhtml/ui_component/customer_listing.xml
<?xml version="1.0" encoding="UTF-8"?>
<listing xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
<columns name="customer_columns" class="Magento\Customer\Ui\Component\Listing\Columns">
<column name="confirmation" class="Magento\Customer\Ui\Component\Listing\Column\Confirmation" sortOrder="130">
<settings>
<controlVisibility>false</controlVisibility>
<dataType>select</dataType>
<label translate="true">Confirmed email</label>
<visible>false</visible>
</settings>
</column>
</columns>
</listing>
Note the controlVisibility node. More information about it can be found here
http://devdocs.magento.com/guides/v2.1/ui_comp_guide/components/ui-column.html
Remove the company column in grid.
view/adminhtml/ui_component/customer_listing.xml
<?xml version="1.0" encoding="UTF-8"?>
<listing xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
<columns name="customer_columns" class="Magento\Customer\Ui\Component\Listing\Columns">
<column name="billing_company">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="componentDisabled" xsi:type="boolean">true</item>
</item>
</argument>
</column>
</columns>
</listing>