Print Page | Close Window

HOWTO select prev/next row after RemoveRecordEx

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=10057
Printed Date: 22 November 2024 at 11:24pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: HOWTO select prev/next row after RemoveRecordEx
Posted By: mgampi
Subject: HOWTO select prev/next row after RemoveRecordEx
Date 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



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



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