Updated record -> Re-sort! |
Post Reply |
Author | |
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
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)
|
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: 1198 |
Post Options
Thanks(0)
|
Hi;
Did you ever get a solution? |
|
Martin
Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0 Platform: Windows 10 v 1909 (64bit) Language: VC++ 2017 |
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
No :(
Oh Oleg, where art thou?
|
|
omid
Newbie Joined: 03 November 2007 Status: Offline Points: 5 |
Post Options
Thanks(0)
|
use CXTPReportColumns::SetSortColumn();
|
|
jamesjfh
Newbie Joined: 01 April 2008 Location: United States Status: Offline Points: 4 |
Post Options
Thanks(0)
|
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 |