Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Is it possible to only iterate over group rows?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Is it possible to only iterate over group rows?

 Post Reply Post Reply
Author
Message
nktsrw View Drop Down
Newbie
Newbie


Joined: 13 March 2008
Location: Argentina
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote nktsrw Quote  Post ReplyReply Direct Link To This Post Topic: Is it possible to only iterate over group rows?
    Posted: 26 May 2008 at 4:55pm
Hi,

I would like to iterate only over group rows within a Report Control.

Is it possible?

Thanks,
srw
Back to Top
rmercer View Drop Down
Groupie
Groupie


Joined: 22 February 2006
Status: Offline
Points: 34
Post Options Post Options   Thanks (0) Thanks(0)   Quote rmercer Quote  Post ReplyReply Direct Link To This Post Posted: 30 May 2008 at 11:24am
Originally posted by nktsrw nktsrw wrote:

Hi,

I would like to iterate only over group rows within a Report Control.

Is it possible?

Thanks,
srw
Use GetRows() to get your rows, then iterate through them, test using IsGroupRow() to see if a row is a group row...
Back to Top
nktsrw View Drop Down
Newbie
Newbie


Joined: 13 March 2008
Location: Argentina
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote nktsrw Quote  Post ReplyReply Direct Link To This Post Posted: 30 May 2008 at 11:34am
yes, that's the straightforward way. But when you have thousands of records it's better to only iterate by group rows.
Back to Top
rmercer View Drop Down
Groupie
Groupie


Joined: 22 February 2006
Status: Offline
Points: 34
Post Options Post Options   Thanks (0) Thanks(0)   Quote rmercer Quote  Post ReplyReply Direct Link To This Post Posted: 30 May 2008 at 1:02pm
Originally posted by nktsrw nktsrw wrote:

yes, that's the straightforward way. But when you have thousands of records it's better to only iterate by group rows.
If you find a faster way, please let me know.  :)
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.219 seconds.