Zend certified PHP/Magento developer

How to create Admin grid of Category same as Product Grid?

I want to display Admin Grid for categories same as Product Grid without using UI Component. I am trying to get Collection of category using below code in _prepareCollection method inside Grid.php of my custom module, but I am getting error of Invalid argument supplied for foreach(). Please help me in display of category id and name in grid.

$collection = $this->categoryFactory->create()->getCollection()->addAttributeToSelect('*');

$this->setCollection($collection);
parent::_prepareCollection();