Grid View

how can i create a grid view from a model displaying only records with the given ids?

plz post your queries in following links.

for Yii 1.1 x

for yii 2.0

.

in Your model , overwrite the query generated in search function .

you can use the other method.