![]() |
ReportControl: How can I delete a row? |
Post Reply ![]() |
Author | ||
finn ![]() Groupie ![]() ![]() Joined: 11 February 2005 Location: Germany Status: Offline Points: 60 |
![]() ![]() ![]() ![]() ![]() 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! |
||
![]() |
||
ianp ![]() Moderator Group ![]() ![]() Joined: 19 December 2003 Location: United Kingdom Status: Offline Points: 119 |
![]() ![]() ![]() ![]() ![]() |
|
If you have the row, then you can use the following:
Edited by ianp |
||
![]() |
||
finn ![]() Groupie ![]() ![]() Joined: 11 February 2005 Location: Germany Status: Offline Points: 60 |
![]() ![]() ![]() ![]() ![]() |
|
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! |
||
![]() |
||
ianp ![]() Moderator Group ![]() ![]() Joined: 19 December 2003 Location: United Kingdom Status: Offline Points: 119 |
![]() ![]() ![]() ![]() ![]() |
|
do you call wndreportcontrol.populate after deleteall?
|
||
![]() |
||
finn ![]() Groupie ![]() ![]() Joined: 11 February 2005 Location: Germany Status: Offline Points: 60 |
![]() ![]() ![]() ![]() ![]() |
|
Yes, but like I said, when I call Row.Record.DeleteAll, then the GroupRow and the ItemRow is empty (without any information). Yours, Finn! |
||
![]() |
||
ianp ![]() Moderator Group ![]() ![]() Joined: 19 December 2003 Location: United Kingdom Status: Offline Points: 119 |
![]() ![]() ![]() ![]() ![]() |
|
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
Method 2. Blanking the record then hiding it
|
||
![]() |
||
finn ![]() Groupie ![]() ![]() Joined: 11 February 2005 Location: Germany Status: Offline Points: 60 |
![]() ![]() ![]() ![]() ![]() |
|
Thank you very much! Now it works! Yours, Finn! |
||
![]() |
||
nighthawk ![]() Senior Member ![]() ![]() Joined: 11 June 2004 Status: Offline Points: 167 |
![]() ![]() ![]() ![]() ![]() |
|
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.
|
||
![]() |
||
finn ![]() Groupie ![]() ![]() Joined: 11 February 2005 Location: Germany Status: Offline Points: 60 |
![]() ![]() ![]() ![]() ![]() |
|
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! |
||
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |