ReportControl doesnt refresh when deleting a row |
Post Reply |
Author | |
gbrix
Newbie Joined: 10 October 2006 Status: Offline Points: 8 |
Post Options
Thanks(0)
Posted: 10 October 2006 at 5:04am |
Hi,
New to this control.
I delete a selected row like this:
ReportControl1.FocusedRow.Record.DeleteAll
ReportControl1.Redraw ReportControl1.Populate however this leaves the control with broken indentation and gap.
Am I doing something wrong? Thanks
|
|
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
Hi,
.DeleteAll deletes all Items from this Record -- it's not what you need. You'd better use the following:
-- WBR, Serge |
|
gbrix
Newbie Joined: 10 October 2006 Status: Offline Points: 8 |
Post Options
Thanks(0)
|
Thanks for your quick reply
Just tried and seems to delete them all ,I just want to delete the selected row.
Just noticed that the index is always 0.
I am loading the tree view in a kind of treeview style Any more suggestions
|
|
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
Well, if this is a tree view, you just need to delete a records not from top Records collection as it is shown above, but from the parent record collection. Something like below:
-- WBR, Serge |
|
gbrix
Newbie Joined: 10 October 2006 Status: Offline Points: 8 |
Post Options
Thanks(0)
|
Thanks a lot it worked.Sorry for not telling you earlier that it was a treeview.
Just to say that are great controls.Are you planning more examples where you also show how to manipulate this controls like remove-find etc..
again thanks
|
|
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
For some more tips and tricks you can look at "Articles and tutorials" chapter at the web site: http://www.codejock.com/support/articles/
-- WBR, Serge |
|
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 |