Create CgridView master - detail with Click

I want to create a table with CGridView that contains the master-detail. The table is as follows:


Group (id, group_nm)

Member (id, group_id, first_name, middle_name, last_name, email, username, password)

[/ code]

I want to show the Group List, then when clicked the name of the group member list appears in table form dg CGridView (according to group member list) (not POP UP but on the sidelines of the list group), if the group name is clicked again then the list member earlier will be hidden again.

Hold the solution of the master to solve this problem?