![]() |
CXTPReportSelectedRows |
Post Reply ![]() |
Author | |
Italo ![]() Groupie ![]() Joined: 10 December 2003 Location: United States Status: Offline Points: 83 |
![]() ![]() ![]() ![]() ![]() Posted: 26 July 2004 at 2:41pm |
How do I enumerate the selected rows? I can’t seem to find a way to do this. Thanks, Italo |
|
![]() |
|
spike ![]() Groupie ![]() Joined: 13 May 2003 Location: United States Status: Offline Points: 48 |
![]() ![]() ![]() ![]() ![]() |
I have just begun working with this class, the only way I have found is to loop through the rows collection (GetRows()) and pSelectedRows->Contains() or CXTPReportRow::IsSelected.
|
|
![]() |
|
Italo ![]() Groupie ![]() Joined: 10 December 2003 Location: United States Status: Offline Points: 83 |
![]() ![]() ![]() ![]() ![]() |
I added the following method to CXTPReportSelectedRows (XTPReportRows.h) CMap<CXTPReportRow*, CXTPReportRow*, BOOL, BOOL>* GetCollection() { return &m_mapRows; }
CMap<CXTPReportRow*, CXTPReportRow*, BOOL, BOOL> *pSelectedCollection = GetSelectedRows()->GetCollection(); // Determine the number of selected records if( pRow->GetRecord() ) Edited by Italo |
|
![]() |
|
spike ![]() Groupie ![]() Joined: 13 May 2003 Location: United States Status: Offline Points: 48 |
![]() ![]() ![]() ![]() ![]() |
Why would you do that? Just loop the rows collection calling isSelected on each row?
|
|
![]() |
|
Italo ![]() Groupie ![]() Joined: 10 December 2003 Location: United States Status: Offline Points: 83 |
![]() ![]() ![]() ![]() ![]() |
Because I have thousands of rows and I don’t see why I should enumerate them when CXTPReportSelectedRows contains a list of all the selected rows.
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |