After struggling for a while I managed to get it, inside the masterRowExpanded event I used:
GridView gv = sender as GridView;
AdvBandedGridView abgv = (AdvBandedGridView)(gv.GetDetailView(e.RowHandle,RelationIndex));
Then the advanced banded gridview had the datasource I was looking for.