Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
40
Hierarchical data, sub-level column headers in xamdatagrid to top of grid
posted

I have a hierarchical data model:

public class AssetClassLevelViewModel
{    
     
public string AssetClassName {get; set;}

     
public ObservableCollection<AssetClassLevelViewModel> ChildAssetClasses {get; set;}

     
public ObservableCollection<ProductHoldingsWithAllocationViewModel> ProductHoldings {get; set;}

}

The column headers seen in the image reflect the ProductHoldingsWithAllocationViewModel properties.

I need to move the column headers on top of the grid, and do not want them repeating at each grouping level.

Is there a solution for this? In the xaml I've set the HeaderPlacement property to OnTopOnly

Thanks

Hasanain