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
1034
WindGrid hierarchy is not working as I expect!
posted

Hello,

I try to acheive a hierarchy of data, but it does not do what I expect.

I need the WinGrid not to show unncessary groups that already been shown in another group level and also use 1 single band if possible.

 I have attached a sample project for demonstration.

You can see from the sample that the first column size is too big and cannot be resized. Also, most of the time the application freezes.

WindowsFormsApplication8.zip
Parents
  • 37774
    posted

    What do you mean by 'unnecessary groups'?  Do you not want the headers to be shown repeatedly?  If so, take a look at the HeaderPlacement property on the grid's Override object; you may want to try setting this to OncePerGroupedRowIsland.  As for the column sizes, by default the grid will match the sizes to the child column sizes, so you could try setting the Override's AllowColSizing property to Free; you may want to call PerformAutoResize on each of the columns in InitializeLayout so that the text is visible.

    -Matt

Reply Children