Add below code in 'Model/ResourceModel/Grid/Collection' file for filter grid
protected function _renderFiltersBefore()
{
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$request = $objectManager->get('Magento\Framework\App\Request\Http');
$filters = $request->getParam("filters");
if (isset($filters['product_id'])) {
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$product = $objectManager- >get('Magento\Catalog\Model\ProductFactory')->create()
->getCollection()
->addAttributeToFilter('sku', ['eq'=>$filters['product_id']])->getFirstItem();
$this->getSelect()->orWhere("product_id = '" . $product->getId() . "'");
}
parent::_renderFiltersBefore();}
But its not working for me.