Print Page | Close Window

sorting data in report....

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=14842
Printed Date: 29 April 2024 at 1:05am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: sorting data in report....
Posted By: ddlittle
Subject: sorting data in report....
Date Posted: 27 July 2009 at 5:50pm
I want to sort my report in EndUpdate() - prior to the user seeing it - but can't find any public functions that do that.  It's surely possible, but the only way I can think of now is to hack in a mouse click on the column i'd like to sort by.
 
Any ideas?
 
Thanks!
 
- David



Replies:
Posted By: mdoubson
Date Posted: 27 July 2009 at 7:42pm
Having MFC source you can't find needed function?

// Summary:

// Sorts rows corresponding to the sort order taken from columns.

// Parameters:

// pRows - A rows collection to sort.

//CXTPReportControl

virtual void SortRows(CXTPReportRows* pRows);
 
you can setup needed sort order


-------------
Mark Doubson, Ph.D.



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