cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding hide column from sales order grid of admin

Regarding hide column from sales order grid of admin

Version: Magento CE 2.1.9

I want to hide ID column from sales order grid of admin

so please suggest me how can I hide it?

4 REPLIES 4

Re: Regarding hide column from sales order grid of admin

By default, main columns are visible in grid,
but there are additional columns, that can be enabled from “Columns” drop-down on the top-right side.

 

for Custom Column you need to Configure UI grid component in following way

 

extend UI configuration for sales order and sales invoice grid introducing

app/code/VENDOR/MODULE/view/adminhtml/ui_component/sales_order_grid.xml

Add the following XML snippet to the UI configuration file

<!-- Add the column "custom_column" (Custom Column) to the sales invoice grid. -->
<listing xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
<columns name="sales_order_invoice_columns">
<column name="custom_column">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="filter" xsi:type="string">text</item>
<item name="label" xsi:type="string" translate="true">Custom Column</item>
</item>
</argument>
</column>
</columns>

 

Re: Regarding hide column from sales order grid of admin

Yes but above code for add new custom column into sales order grid.

 

And I want to hide existing order id column from sales order grid of admin.

 

Please once again read my subject

Re: Regarding hide column from sales order grid of admin

And i also tried above code for add custom column into sales order grid and that column was displayed properly into order grid but filter section displays under the order grid not above the grid as by default.

 

For more information please see below screenshotordergrid.png

Re: Regarding hide column from sales order grid of admin

No still not got any reply of my question

 

Please suggest me if anyone do this