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
Tablet //main cat
Sony //sub cat of Tablet
Apple //sub cat of Tablet
Laptop //main cat
Mobile //main cat