Magento allows you to quickly add a column to the products grid by selecting an attribute using grid toolbar. But what if you want to display custom values that aren’t available as a product attribute, here is a small piece of code to add a custom column to the products grid of Magento 2.
Attachment 13807
For more tutorial: How to add a custom column to the products grid of Magento 2