Showing Data On Cgridviews (Dependent On Each Other)

hello guys,

I have problems to show Data of dependent CGridview in Tabs like

for example:

cgridview1 g1, and cgridview2 g2 and so on…

g1 is my parent and other are dependent on it…

when user apply filter on g1 after it successfully complete then second grid will start to update its data as the data of second grid g2 is dependent(i m getting filtered IDS and passing it to g2 CSqlDataProvider) on g1. any idea Please!!!!!