I have a column called goods. I can enter the number inside that column and save. After save I don't want to show the entry in the grid. It should be empty. I want to show only the column name as goods but I don't want to show the entry. Please help. Thanks in advance.
If you want to show just column name and hide to its values just do follow things
1) Go to your custom module ->
2) Go to protected function
3) Find column whose value you want to hide like
$this->addColumn( 'name', [ 'header' => __('name') //'index' => 'name', ] );
4) run this commands
php bin/magento cache:clean && php bin/magento cache:flush
Inside your UI component file you will find a column tag with a name attribute which is your column name, like below example:
<column name="created_at" class="Magento\Ui\Component\Listing\Columns\Date" component="Magento_Ui/js/grid/columns/date"> <settings> <filter>dateRange</filter> <dataType>date</dataType> <label translate="true">Purchase Date</label> <sorting>desc</sorting> </settings> </column>
You can comment it or delete that part of the code. Above
created_at is the name of the column that you want to delete.