Remove column customer grid with observer

by Ziru Zanrgeiff   Last Updated August 27, 2018 10:09 AM

I'm trying to remove some columns from customer grid, but is not working, I've tried several similar events, but none of them work.

my config.xml


and my observer

class Manage_Adminhtml_Model_Observer
    public function getCustomerGrid( $observer )
        $block = $observer->getEvent()->getBlock();

        if ($block->getId() == 'customerGrid') {



Answers 1

What you want to do can be achieved with GridControl.

We use the event adminhtml_block_html_before and then call $params->getBlock()->removeColumn($params->getColumn()->getName());

Fabian Blechschmidt
Fabian Blechschmidt
June 18, 2016 06:41 AM

Related Questions

What's wrong with my event observer?

Updated September 27, 2017 00:09 AM

forgot password event for frontend

Updated July 02, 2017 17:09 PM

Customer save after event magento2

Updated November 23, 2018 15:09 PM