Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - BUG: RemoveRecordEx and selection
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

BUG: RemoveRecordEx and selection

 Post Reply Post Reply
Author
Message
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1198
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Topic: BUG: RemoveRecordEx and selection
    Posted: 07 September 2016 at 9:56am
Hi;

When calling RemoveRecordEx that is part of the selected Rows the Row is not removed from the selected rows collection!
In my case I'm selecting all rows (block selection) and then call RemoveRecordEx() for every row->GetRecord() record.
There is no Populate() call inbetween.
Afterwards when calling GetSelectedRows()->GetCount() it retuns the previous selected row count.
For me it seems as if the block selection information (if there is one) is not updated in this case.

Anyway, it leads to some strange side effects.
BTW: I'm using XTP 17.2

How can I fix this?
Martin

Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017
Back to Top
olebed View Drop Down
Admin Group
Admin Group


Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote olebed Quote  Post ReplyReply Direct Link To This Post Posted: 07 September 2016 at 12:54pm
Hello Martin,

I think this will be helpful.
Those changes relate to v17.2.

Regards,
 Oleksandr Lebed
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1198
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Posted: 07 September 2016 at 3:14pm
Thanks,
I'll give it a try tomorrow, and come back with the results.
Martin

Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017
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.156 seconds.