CGridView gives strange behavior

Hello everyone,

I have some problems with the CGridView class.

It seems the paging issent working like it should. When i click page 2 pages 1 and 2 are shown.

Here’s my code:

In the controller




$images = new CActiveDataProvider ('Images', array ( 

    'criteria' => array (

    	'condition' => 'Status = 0 AND UserId = '.Yii::app()->user->UserId,

    ),

    'pagination' => array ( 

        'PageSize' => 5, 

    ) 

));



In the view




<?php

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

	'id'=>'waitingroom-grid',

	'dataProvider'=>$images,

	'columns'=>array(

		'Id',

		array(

			'name' => 'ArtikelId',

			'value' => 'Productdata::model()->findByPk($data->ArtikelId)->Productname'

		),

		array(

			'name'=>'Thumb',

			'type'=>'image',

			'value'=>'$data->Thumb',

		),

		array(

			'class'=>'CButtonColumn',

			'template'=>'{update}',

			'buttons'=>array(

				'update'=>array(

					'url'=>'Yii::app()->createUrl("waitingroom/image/$data->Id")',

					'imageUrl'=>'/images/accept.png',

					'visible'=>'true',

				),

			),

		),

	),

));

?>



Any ideas?

Thanks.

Solved the id of both grids where the same stupid lol :-* .