Accordion is a stand alone widget, therefor it will not combine with DataGrid2 in a way. You will have to create all functionality in javascript and css. But whatever you do, the accordion can only control 1 object, not several objects, since the selection and sorting can differ after each click.
Maybe a Galary-widget is closer to what you want to accomplish.