Print Page | Close Window

CXTPReprtControl select rows ???

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=3668
Printed Date: 10 November 2025 at 1:41am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPReprtControl select rows ???
Posted By: hpesata
Subject: CXTPReprtControl select rows ???
Date 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




Replies:
Posted By: sserge
Date 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



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