Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - (bug?)CXTPReportControl::GetSelectedRows()
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

(bug?)CXTPReportControl::GetSelectedRows()

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


Joined: 21 October 2009
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote Tracy Quote  Post ReplyReply Direct Link To This Post Topic: (bug?)CXTPReportControl::GetSelectedRows()
    Posted: 21 October 2009 at 4:57am
HI;
 
I used CXTPReportControl::GetSelectedRows() to get the rows that selected. But if I selected rows with 'shift'  + LButtondown, the rows I read form GetSelectedRows() is wrong.
 
CXTPReportControl &wndReport = GetReportCtrl();
CXTPReportSelectedRows *pSelectedRows = wndReport.GetSelectedRows();
int count = pSelectedRows->GetCount();
 
For example, I selected the 5th line first, then I selected 10th line with  'shift'  + LButtondown, then count = 7, not 6.
And if I go on selecting with 'shift'  + LButtondown, count all wrong.
What happened, and what can I do? 
Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post Posted: 21 October 2009 at 3:08pm
Just get coming 13.2
Back to Top
Tracy View Drop Down
Newbie
Newbie


Joined: 21 October 2009
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote Tracy Quote  Post ReplyReply Direct Link To This Post Posted: 21 October 2009 at 10:54pm
Hi;
 
Are there some other ways to resolve this problem? Changing to 13.2 is a big project.
 
Thank you.
Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post Posted: 22 October 2009 at 8:54pm
No - sorry
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.