Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - RemoveAt + Populate (revisited for child records)
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

RemoveAt + Populate (revisited for child records)

 Post Reply Post Reply
Author
Message
elmsoftware View Drop Down
Groupie
Groupie
Avatar

Joined: 21 November 2006
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote elmsoftware Quote  Post ReplyReply Direct Link To This Post Topic: RemoveAt + Populate (revisited for child records)
    Posted: 14 September 2007 at 2:40pm

NightHawk helped me earlier with a previous post about deleting a record using 'RemoveAt' + 'Populate' + 'TopRowIndex' to establish a familar deleting effect of a row.

 
Now, I have records that have 'Child' records.
When performing the same method of:
 
    lngTopRow = rpt.TopRowIndex

    rpt.Records.RemoveAt (Row.Record.Index)

    rpt.Populate

    rpt.TopRowIndex = lngTopRow
 
This code will not remove the child record.
 
What is the recommended practice for removing a child record.
 
Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post Posted: 20 September 2007 at 5:32pm

lngTopRow = rpt.TopRowIndex
Row.Record.DeleteAll
rpt.Records.RemoveAt (Row.Record.Index)
rpt.Populate
rpt.TopRowIndex = lngTopRow


--
WBR,
Serge
Back to Top
elmsoftware View Drop Down
Groupie
Groupie
Avatar

Joined: 21 November 2006
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote elmsoftware Quote  Post ReplyReply Direct Link To This Post Posted: 20 September 2007 at 10:34pm
Much appreciated.
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.188 seconds.