# How to hide grid action button from "sw-entity-listing" listing in shopware 6?

**URL:** <https://forum.shopware.com/t/how-to-hide-grid-action-button-from-sw-entity-listing-listing-in-shopware-6/63699>\
**Category:** Programming (EN)\
**Created:** [27. Dezember 2019 um 08:06 UTC](https://forum.shopware.com/t/how-to-hide-grid-action-button-from-sw-entity-listing-listing-in-shopware-6/63699 "2019-12-27T08:06:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![abinjohnedamana](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/abinjohnedamana/32/17378_2.png) [@abinjohnedamana](https://forum.shopware.com/u/abinjohnedamana)\
**Post date:** [27. Dezember 2019 um 08:06 UTC](https://forum.shopware.com/t/how-to-hide-grid-action-button-from-sw-entity-listing-listing-in-shopware-6/63699/1 "2019-12-27T08:06:55Z")

</div>

How to hide grid action buttons(Edit, Delete) from “sw-entity-listing” listing in shopware 6?

---

<div class="post-metadata">

**Author:** ![shyim](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/shyim/32/7681_2.png) [@shyim](https://forum.shopware.com/u/shyim)\
**Post date:** [27. Dezember 2019 um 08:53 UTC](https://forum.shopware.com/t/how-to-hide-grid-action-button-from-sw-entity-listing-listing-in-shopware-6/63699/2 "2019-12-27T08:53:12Z")

</div>

You could extend the base component and empty the blocks for those actions

---

<div class="post-metadata">

**Author:** ![abinjohnedamana](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/abinjohnedamana/32/17378_2.png) [@abinjohnedamana](https://forum.shopware.com/u/abinjohnedamana)\
**Post date:** [27. Dezember 2019 um 09:57 UTC](https://forum.shopware.com/t/how-to-hide-grid-action-button-from-sw-entity-listing-listing-in-shopware-6/63699/3 "2019-12-27T09:57:55Z")

</div>

> [@Shyim schrieb:](https://forum.shopware.com/profile/20792/Shyim "Shyim")
> 
> You could extend the base component and empty the blocks for those actions
> 
> Thank you for your replay
> 
> I have found the following lines of code in /var/www/html/shopware6/development/platform/src/Administration/Resources/app/administration/src/app/component/data-grid/sw-data-grid.html.twig
> 
> {% block sw\_data\_grid\_body\_cell\_actions %}
> 
> ```
> {% block sw_data_grid_slot_actions %}{% endblock %}
> 
> ```
> 
> {% endblock %}
> 
> &nbsp;
> 
> I have tried the following
> 
> {% block sw\_data\_grid\_body\_cell\_actions %}  
> {% endblock %}
> 
> Not working(Showing Edit, Delete options)
> 
> ok
> 
> Edit, Delete options hide but still showing the button
> 
> Not working(Showing Edit, Delete options)
> 
> Not working(Showing Edit, Delete options)
> 
> How to hide the button and the edit, delete options from admin side listing?

---

<div class="post-metadata">

**Author:** ![shyim](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/shyim/32/7681_2.png) [@shyim](https://forum.shopware.com/u/shyim)\
**Post date:** [27. Dezember 2019 um 10:20 UTC](https://forum.shopware.com/t/how-to-hide-grid-action-button-from-sw-entity-listing-listing-in-shopware-6/63699/4 "2019-12-27T10:20:59Z")

</div>

Like so

```
Component.extend('my-listing', 'sw-entity-listing', {
    template: '{% block sw_data_grid_body_cell_actions %}{% endblock %}'
});

```

And use

---

<div class="post-metadata">

**Author:** ![abinjohnedamana](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/abinjohnedamana/32/17378_2.png) [@abinjohnedamana](https://forum.shopware.com/u/abinjohnedamana)\
**Post date:** [15. Dezember 2020 um 06:27 UTC](https://forum.shopware.com/t/how-to-hide-grid-action-button-from-sw-entity-listing-listing-in-shopware-6/63699/5 "2020-12-15T06:27:28Z")

</div>

use :showActions=“false”  
&nbsp;&nbsp;  
eg: &nbsp; &nbsp; v-if=“customerSearchKeywords”  
&nbsp; &nbsp; :items=“customerSearchKeywords”  
&nbsp; &nbsp; :repository=“repository”  
&nbsp; &nbsp; :showSelection=“false”  
&nbsp; &nbsp; :columns=“columns”  
&nbsp; &nbsp; :sortBy=“sortBy”  
&nbsp; &nbsp; :sortDirection=“sortDirection”  
&nbsp; &nbsp; :isLoading=“isLoading”  
&nbsp; &nbsp; :showActions=“false”  
&nbsp; &nbsp; @column-sort=“onSortColumn”\>  
&nbsp; &nbsp;
