Cgridview

Hi,

I’m a new be in Yii,

i have a problem : i want to know how to view data from queryBuilder in a CGridView?

thanks

firstly to get the sql :CDbCommand:getText then init a CSqlDataProvider using the sql , later the dataProvider can be used by CGridView