changing the order of the DetailData bands in a report

edited 6:48PM in FastReport 4.0
We need to be able to decide the order the Detail bands are in for a MasterData band.

How can I make it so each time the report renders the MasterData band, I can decide the order of the Detail bands inside the master band? Ie: the first item may be 1,2,3 but the 2nd may be 3,2,1.

Master Rec 1
1
2
3

Master Rec 2
3
2
1

I have managed to reorder the bands but can only have it work if I do it before the report runs. The attached program has some commented out calls to orderbands( ) that only work in some places.

At this time, I can???t change the order for each MasterData record.

Thank you for your help!

Leave a Comment