Relations and CActiveDataProvider

In the blog tutorial, there is a description as follows.

It is very useful. Then, I would like to display all the record we have collected, in the $comments for instance, using CGridView widget or something.

But I was unable to do it because CGridView requires CActiveDataProvider as a data source, though I already have $comments as the data source.

Is there way to make use of this related data acquisition? Of course we can display using CGridView, throwing collected data away, but it is not beautiful.

You may be interrested in the first post of this topic forum