add colspan in data row CGridView

hi all, im newbie here :), got some problems about using CGridView

here’s my table structure :

id (pk)

parent_id

product_name

is it possible to display data like table below using CGridView ?? ( add colspan to <td> if current data is parent)


parent | product


Book (add colspan = 2)


…| Book I


…| Book II


Computer (add colspan = 2)


…| VGA


…| Hardisk


many thanks

there is a property called htmlOptions

I would say it is possible to change the colspan, but in your own extended CDataColumn