change number of item in grid view widget

Hello, I was trying to change the number of items displayed in a grid view. I set the code as follows but I get no change. I would also like to delete the text that appears. for example

Displaying 1-10 of 205 results.

How can I do?

'pager' => array(

'class' => 'CLinkPager_sio',

'maxButtonCount' => 5,

'pageSize' => '30'



Hi Ciro, have you tried to use ‘summaryText’ property?

$this->widget('zii.widgets.grid.CGridView', array(


    'summaryText' => '',


You can set the page size of a CGridView when you create the CActiveDataProvider for it.

It is usually done in the search() method of the model.

	public function search()


		// Warning: Please modify the following code to remove attributes that

		// should not be searched.

		$criteria=new CDbCriteria;



		return new CActiveDataProvider(get_class($this), array(

			'criteria' => $criteria,

			'pagination' => array(    // pagination property

				'pageSize' => 30, // page size

			),                        // 



thanks to both. I used the second solution. also because the information that I found on summaryText was insufficient.


Even i need to increase the items displayed from 10 to more. But i dont know where to do the changes. Pls can someone help me

Anyway thanx guys i got the output…

Use this:

$this->widget('zii.widgets.grid.CGridView', array(

        'dataProvider' => $dataProvider,

        'emptyText' => 'No Requests',

        'rowCssClass' => array('odd', 'even', 'redodd', 'redeven'),

        'summaryText' => 'Displaying {start} - {end} of {count} records ",

        'columns' => array(