Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Updated record -> Re-sort!
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Updated record -> Re-sort!

 Post Reply Post Reply
Author
Message
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post 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!
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 19 September 2008 at 5:36am

Please give me a hint. This should be simple, but I can't get it working :(

Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1198
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Posted: 01 October 2008 at 4:06am
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
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 01 October 2008 at 9:06am
No :(
 
Oh Oleg, where art thou?
Back to Top
omid View Drop Down
Newbie
Newbie
Avatar

Joined: 03 November 2007
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote omid Quote  Post ReplyReply Direct Link To This Post Posted: 05 December 2008 at 4:19am
use CXTPReportColumns::SetSortColumn();
Back to Top
jamesjfh View Drop Down
Newbie
Newbie


Joined: 01 April 2008
Location: United States
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote jamesjfh Quote  Post ReplyReply Direct Link To This Post 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


Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.