Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - HOWTO select prev/next row after RemoveRecordEx
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

HOWTO select prev/next row after RemoveRecordEx

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

Joined: 14 July 2003
Status: Offline
Points: 1201
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Topic: HOWTO select prev/next row after RemoveRecordEx
    Posted: 03 April 2008 at 6:14am
Hi;
 
does anyone know how to select the previous/next row after a call to RemoveRecordEx. I don't know how to get the previous row of a given row...
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1201
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Posted: 03 April 2008 at 6:33am
Hi;
ignore it, I found the solution by myself:
 
Just using GetRows()->GetNext(), GetRows()->GetPrev().
 
BTW: I'm wondering why GetNext/GetPrev returns the pointer to the same record if only one record/row is contained in the control. Shouldn't it return NULL in this case?
 
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022
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.141 seconds.