![]() |
Updated record -> Re-sort! |
Post Reply
|
| Author | |
znakeeye
Senior Member
Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
Quote Reply
Topic: Updated record -> Re-sort!Posted: 15 September 2008 at 5:26am |
|
XTP 12.0.1.
I change the text of a record item:
pRecord->GetItem(0)->SetValue("New value");
I want this item to be correctly sorted, but I can't get it working. None of these attempts work:
* m_report.GetRows()->Sort();
* m_report.Populate();
* m_report.UpdateRecord(pRecord);
... any ideas? Thanks!
|
|
![]() |
|
znakeeye
Senior Member
Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
Quote Reply
Posted: 19 September 2008 at 5:36am |
|
Please give me a hint. This should be simple, but I can't get it working :( |
|
![]() |
|
mgampi
Senior Member
Joined: 14 July 2003 Status: Offline Points: 1210 |
Post Options
Thanks(0)
Quote Reply
Posted: 01 October 2008 at 4:06am |
|
Hi;
Did you ever get a solution? |
|
|
Martin Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0 Platform: Windows 10 v 22H2 (64bit) Language: VC++ 2022 |
|
![]() |
|
znakeeye
Senior Member
Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
Quote Reply
Posted: 01 October 2008 at 9:06am |
|
No :(
Oh Oleg, where art thou?
|
|
![]() |
|
omid
Newbie
Joined: 03 November 2007 Status: Offline Points: 5 |
Post Options
Thanks(0)
Quote Reply
Posted: 05 December 2008 at 4:19am |
|
use CXTPReportColumns::SetSortColumn();
|
|
![]() |
|
jamesjfh
Newbie
Joined: 01 April 2008 Location: United States Status: Offline Points: 4 |
Post Options
Thanks(0)
Quote Reply
Posted: 08 December 2008 at 2:55pm |
|
I just ran across this problem myself. Use ...
CXTPReportColumns *pCols = m_report.GetColumns(); pCols->SetSortColumn(pCols->GetAt(0), TRUE); m_report.Populate(); ... assuming you want to sort on column 0 |
|
![]() |
|
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 |