![]() |
CXTPReprtControl select rows ??? |
Post Reply
|
| Author | |
hpesata
Groupie
Joined: 16 July 2004 Status: Offline Points: 60 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
sserge
Moderator Group
Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
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 |