Hi Igor, hi everybody,
I have a grid containing hierarchical structures, e.g. a contact list like shown below:
Column "NAME" Column "REVENUE"
Company A 140
|__ Department 1 90
|__ Person NN 60
|__ Person LL 30
|__ Department 2 50
|__ Person XY 50
Company B 200
If I use the sort function on column "REVENUE", iGrid switches positions of persons "NN" and "LL".
Everthing fine so far.
Sometimes it would be nice to:
a) switch between a hierarchical (tree) view and a flat view of the same data
b) have the grid ordered by "REVENUE" without considering the persons' parent/child relationship.
Is there an easy way to switch between a tree view and a flat view without rebuilding the grid (i.e. reload data without parent/child relationship)?
If yes, is it possibly to apply the sort function to the whole set of data without considering existing parent/child relationship?
Expected result:
Column "NAME" Column "REVENUE"
Person LL 30
Department 2 50
Person XY 50
Person NN 60
Department 1 90
Company A 140
Company B 200
I have tried to set TreeCol="some hidden column" which works fine to display the "NAME" column flat. But of course, this does not affect the sort behaviour.
Thank you for shareing your thoughts on that question!
Kind regards,
Marc
Edited by moderator
2015-06-30T14:56:20Z
|
Reason: Edited by Igor/10Tec: formatted grid data sample with monospace font