Print Page | Close Window

HOWTO: Sort items with children first

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=19893
Printed Date: 28 September 2024 at 7:21pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: HOWTO: Sort items with children first
Posted By: mgampi
Subject: HOWTO: Sort items with children first
Date Posted: 26 June 2012 at 8:10am
Hi;

I'm using the report control in tree mode and I want the control to behave the same way as a standard tree. So called "folders" should be shown first before any child row.
What I currently get is this:




I want the items with the "industry" icon to be shown first in sorted order and then the child item(s).

How can I achive this?

TIA




-------------
Martin

Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017



Replies:
Posted By: mgampi
Date Posted: 26 June 2012 at 3:52pm
Ok, solved  it myself. Clap

My own virtual CXTPReportRecordItem::Compare() derived function handles this.


-------------
Martin

Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017


Posted By: Willowmaster
Date Posted: 27 June 2012 at 5:18am
Have you tried setting the groupcaption and grouppriority of the reportrecorditem?

-------------
Product: Xtreme SuitePro (ActiveX) version 15.3.1

Platform: Windows XP (32bit) - SP 3 (on VMWare)

Language: Visual Basic 6.0






Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net