Print Page | Close Window

[SOLVED] CXTPReportRow::GetIndex() question

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=18452
Printed Date: 22 May 2024 at 4:07pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [SOLVED] CXTPReportRow::GetIndex() question
Posted By: mgampi
Subject: [SOLVED] CXTPReportRow::GetIndex() question
Date Posted: 26 May 2011 at 6:11am
Hi;

When using the report control in tree like mode I have troubles in getting the right row index within the record collection.
Take a look at the screenshot:

When the "Test 1" row is collapsed I get the right index with the tree depth level 0 for the last row (= Index 5). But when the "Test 1" row is expanded I get row index 7. So far so good!
I now want the row to be moved one up within its record collection, so I want the last row to become the row just below the row titled "k". To determine this I need the index of the row titled "Test 1" that has the same tree depth as the last row.
Is there a way to get this row (index) very fast without iteration over all records in the collection? Are functions available to get this info?



-------------
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 May 2011 at 6:57am
Hi;

Forget my post, I found the real simple solution after a few minutes of thinking Wink


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

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



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