If I am creating a block which is type 'Mage_Adminhtml_Block_Widget_Grid' in my controller like so...

$block = $this->getLayout()->createBlock('mymod/adminhtml_mymod_my_grid');

I can get the html like so...


Is there any way I can get the number of rows the grid returns? Something like...


$block->getCollection()->getSize(); retrieves the count of all items.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.