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.
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
Thanks for your reply!
AllowColSizing was good, but after that the columns shrinked. I use PerformAutoResize in InitializeLayout, but nothing is happening. Also, it seems that there is a bug if there are multiple bands, because the application freezes after I use it for around 1 minutes. This is not my application, but it is the simple test application that you could create it yourself or use the one I am attaching.
{
col.PerformAutoResize();
}