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
555
Hierarchical grid layout
posted

Hello,

I would like to layout a grid with several bands like the one below; the key thing is that the columns of all levels are aligned and that also the row expand indicators are shown. I have tried to set the Band.Indent=0 but then row expand indicators are not shown.

 

Thanks

Parents
No Data
Reply
  • 469350
    Offline posted

    Hi,

    You might want to consider using UltraTree, instead and setting the Style to OutlookExpress. That will more closely resemble what you have here.

    To do this in the WinGrid, Indent is not really what you want, because Indent is horizontal spacing in front of the row. What you want is to remove the spacing between rows.

    grid.DisplayLayout.InterBandSpacing = 0;

    There's no easy way to put the expansion indicators inside the row like you have here, but you could do it using a CreationFilter.

     

Children