hello,
I have data with a tree structure (let’s say sales channels: world made of regions made of nations) and for each node of this structure I have several data along a time horizon (customer orders by month, sales forecast by month and others). I would like to combine these data in a way similar to a treelistctrl where the tree represents the sales channels, the columns of the list should be months but in every cell of the list item I should have more lines for the different quantities.
For similar purposes (but not hierarchical data) in the past I used two wxgrids in a splitted window (nations on the left grid and another grid on the right with several rows aligned with a single line of the left window). You can see it in the attached png (the scrolling of the two grids is coordinated and also adding and removing lines). I’ve tried to recover some of this work using the right grid and changing the left with a DataViewCtrl (a tree structure) but coordinating the values of this component with the right grid is challenging for the different logic of the components (items for the DataViewCtrl and row for the grid).
What would you use?
thanks in advance,
Marco

I’ve solved with dataviewctrl and grid: I use a list to keep track of the visible items on the left tree and this way I can set values on the grid easily
···
On Thursday, May 2, 2013 4:54:25 PM UTC+2, Marco Prosperi wrote:
hello,
I have data with a tree structure (let’s say sales channels: world made of regions made of nations) and for each node of this structure I have several data along a time horizon (customer orders by month, sales forecast by month and others). I would like to combine these data in a way similar to a treelistctrl where the tree represents the sales channels, the columns of the list should be months but in every cell of the list item I should have more lines for the different quantities.
For similar purposes (but not hierarchical data) in the past I used two wxgrids in a splitted window (nations on the left grid and another grid on the right with several rows aligned with a single line of the left window). You can see it in the attached png (the scrolling of the two grids is coordinated and also adding and removing lines). I’ve tried to recover some of this work using the right grid and changing the left with a DataViewCtrl (a tree structure) but coordinating the values of this component with the right grid is challenging for the different logic of the components (items for the DataViewCtrl and row for the grid).
What would you use?
thanks in advance,
Marco