Print Page | Close Window

Updated record -> Re-sort!

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=12155
Printed Date: 29 September 2024 at 9:38pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Updated record -> Re-sort!
Posted By: znakeeye
Subject: Updated record -> Re-sort!
Date 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!



Replies:
Posted By: znakeeye
Date Posted: 19 September 2008 at 5:36am

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



Posted By: mgampi
Date 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


Posted By: znakeeye
Date Posted: 01 October 2008 at 9:06am
No :(
 
Oh Oleg, where art thou?


Posted By: omid
Date Posted: 05 December 2008 at 4:19am
use CXTPReportColumns::SetSortColumn();


Posted By: jamesjfh
Date 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





Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net