Move a Row |
Post Reply |
Author | |
braian87b
Groupie Joined: 01 April 2008 Location: Argentina Status: Offline Points: 35 |
Post Options
Thanks(0)
Posted: 03 April 2008 at 7:04pm |
Please, i need to know how to move programatically a row/record to another index, for the classic buttons "Move Up" "Move Down" than moves the current focused row/record swapping places with the previus or next near.
Thanks for advance.!
|
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi,
I think you have to do this yourself. Using InsertAt and RemoveAt methods allow you to "move" the records.
Down:
wndReportControl.Records.RemoveAt wndReportControl.FocusedRow.Index
wndReportControl.Records.InsertAt wndReportControl.FocusedRow.Index + 1, wndReportControl.FocusedRow.Record wndReportControl.Populate Up:
wndReportControl.Records.RemoveAt wndReportControl.FocusedRow.Index
wndReportControl.Records.InsertAt wndReportControl.FocusedRow.Index - 1, wndReportControl.FocusedRow.Record wndReportControl.Populate
Note: this doesn't work with sorting
|
|
braian87b
Groupie Joined: 01 April 2008 Location: Argentina Status: Offline Points: 35 |
Post Options
Thanks(0)
|
thank you, but seems i dont have that method in my control
I have 10.1 version
where i can download another more newer version lite, or demo, whenever.
Thanks in advance
|
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
http://www.codejock.com/downloads/
|
|
braian87b
Groupie Joined: 01 April 2008 Location: Argentina Status: Offline Points: 35 |
Post Options
Thanks(0)
|
Thanks!, im downloading the files rigth now.
|
|
braian87b
Groupie Joined: 01 April 2008 Location: Argentina Status: Offline Points: 35 |
Post Options
Thanks(0)
|
Question: Can this be done in some way with the v10.1 version of the ReportControl ?
|
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi,
I don't know the properties/methods of V10.1 so I don't know if its possible or not. What I posted before is just a workaround and possible with V11.2 (thats also the only version I know)
Maybe there is someone who did the same and with your version.
|
|
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 |