Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - [SOLVED] CXTPReportRow::GetIndex() question
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[SOLVED] CXTPReportRow::GetIndex() question

 Post Reply Post Reply
Author
Message
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1198
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Topic: [SOLVED] CXTPReportRow::GetIndex() question
    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
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1198
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.158 seconds.