How To Show Category And Sub Category In Zii Cgridview?

Hi

I want use zii cgridview like attached image.

In image I show Main cat with orange color and sub category in black.

I want to create a Category and Subcategory ,diffrent is here I want to echo Main Category first and then echo Sub category

for example:

Tablet //main cat

Sony //sub cat of Tablet

Apple //sub cat of Tablet

Laptop //main cat

Sony

Hp

dell

Mobile //main cat

Nokia

sony

Yii cgridview make custom drop down filters, Yii cgridview set row color based on a condition, Yii cgridview add time picker in filter, Yii cgridview add drop down in colum values.