Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTPReprtControl select rows ???
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPReprtControl select rows ???

 Post Reply Post Reply
Author
Message
hpesata View Drop Down
Groupie
Groupie


Joined: 16 July 2004
Status: Offline
Points: 60
Post Options Post Options   Thanks (0) Thanks(0)   Quote hpesata Quote  Post ReplyReply Direct Link To This Post Topic: CXTPReprtControl select rows ???
    Posted: 17 February 2006 at 2:37am
Hi !

XTP 9.70

I want to select several rows within a report control.

I tried to use the following approach:

CXTPReportSelectedRows* pSelRows = m_wndDynamicReport.GetSelectedRows();

if(pSelRows)
{
  // clear current selection
  pSelRows->Clear();
  while( iterate my data/records )
  {
    . . .
    // find rows which have to be selected
    CXTPReportRow* pRow = pRows->Find(pRecord);
    if(pRow)
    {
      pSelRows->Add(pRow);
    }
  }
 
  m_wndDynamicReport.Populate();
  m_wndDynamicReport.RedrawControl();
  m_wndDynamicReport.UpdateWindow();


this doesnt work.

how can I select mutliple rows within my report control ???

thanx in advance!

regards,
Hans

Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post Posted: 17 February 2006 at 3:14am
Hi Hans,

You should not call Populate() in the end of this method.

Note that Populate() regenerates report rows from corresponding records, and old rows data becomes not actual.

--
WBR,
Serge
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.046 seconds.