List view from array


I am new to Yii so could you please tell me, if I have a 2d array then how how can I generate the list view in or grid view with pagination kinda thing in view? please provide me some code snippet for that and how to use it…

The real perspective is that I have got a data array which is a 2d array. And I have passed the array in view. Now how can I get the listing of those elements in view with pagination?

Please put some light on the topic.

CArrayDataProvider was designed for that exact purpose.