Insert Detail Row In Gridview When Clicking Button

I have the gridview like that. When clicking on “View detail” button at the end of row, I want it insert a new row with the detail beneath that row (like the second picture). Please help me. I’ve searched on the internet to find out the answer, but there’re no answer i need. Thanks in advance.

P/S: sorry for my bad English.



I make extension to add new rows for CGridView. If you need you can make your one based on it.