Print Page | Close Window

ReportControl: How can I delete a row?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=2011
Printed Date: 17 November 2024 at 3:43pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: ReportControl: How can I delete a row?
Posted By: finn
Subject: ReportControl: How can I delete a row?
Date Posted: 22 March 2005 at 10:24am

Hello!

I want to know, how I can delete a complete row in my ReportControl. I hope someone can help me.

Yours,

Finn!




Replies:
Posted By: ianp
Date Posted: 22 March 2005 at 11:20am

If you have the row, then you can use the following:

Row.Record.DeleteAll
ReportControl.Populate



Posted By: finn
Date Posted: 22 March 2005 at 11:27am

But when I use this method, the row I want to delete, have no records and is empty. But the row is still there.

Yours,

Finn!



Posted By: ianp
Date Posted: 22 March 2005 at 11:29am
do you call wndreportcontrol.populate after deleteall?


Posted By: finn
Date Posted: 22 March 2005 at 11:32am

Yes, but like I said, when I call Row.Record.DeleteAll, then the GroupRow and the ItemRow is empty (without any information).

Yours,

Finn!



Posted By: ianp
Date Posted: 22 March 2005 at 3:18pm

sorry finn, my mistake, I hadn't spotted that because I was testing on a large recordset and the blank record disappeared off screen...

Appears there are two options:

Method 1. Deleting the record entirely

        Call wndReportControl.Records.RemoveAt(Row.Record.Index)
        wndReportControl.Populate

Method 2. Blanking the record then hiding it

        Row.Record.V isible = False
        Row.Record.DeleteAll
        wndReportControl.Populate



Posted By: finn
Date Posted: 23 March 2005 at 3:53am

Thank you very much! Now it works!  I've tried the 1. method, because I want to delete the whole row!

Yours,

Finn!



Posted By: nighthawk
Date Posted: 31 July 2005 at 7:34pm
How about deleting a row that is a child of another row?  I haven't been able to figure out if there is any way to get an index value of a child row.


Posted By: finn
Date Posted: 01 August 2005 at 3:15am

Thank you for your answer, but I'm using the second possibility of "ianp"!

Yours,

Finn!

PS.: I'm sorry, but I cannot understand your second sentence very well, because I cannot speak, write and understand English very well!




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