What I described applies to a list, not to a DataSet. If you design two DataTable, then you can simply add a relationship between the two table on a common field, and the grid will be able to show the hierarchical data.
e.g.: Assume two data tables, Supplier (master) and Product (detail), and a relationship between the two on the SupplierID field called “SupplierProduct”. Assume a DataSet build form those tables called SPDataSet.
Master.SetDataBinding( SPDataSet.Supplier, “” );
Detail.SetDataBinding( SPDataSet.Supplier, “SupplierProduct” );
Here is more information from our help documentation :
Imported from legacy forums. Posted by André (had 4504 views)