Display Cgridview Based On Condition

Hi i am new to yii framework. In my application i want to display CGridview based on conditon. i.e In my table i have different types of users like Admin,User. Now i want to display Admin to one Gridview and User to another Gridview.


You should modify your searchfuntion and filter the usertype :)

This is idea… you should implement

Thank you so much. It works.