Filter on column in CGridView


Could anyone tell me how to put a filter on an attribute coming from a related in a CGridView? Below is the admin.php view file. My product table is related to shop table by the foreign key shopId. The page rendered is ok except that I cannot filter on the column Thanks beforehand.

<?php $this->widget(‘zii.widgets.grid.CGridView’, array(












)); ?>

See this.

Softark, many thanks to you. That was a great link you gave. I have implemented it and it worked. :D