I think I could understand that. Sometimes writing a problem helps to understand it better, and then fresh ideas appear :)
I used the SqlDataAdapter.Fill (...) method to populate the DataTable. As it turned out, if you fill out an empty DataSet, it will automatically create a table for each returned result set. Thus, I can have several hidden datagrids at hand, and when the program detects that the populated DataSet has several tables, I simply load each datagrid with data from each DataTable into a DataSet.
source share