Print Page | Close Window

Regarding XTP_NM_REPORT_PRESORTORDERCHANGED

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=12359
Printed Date: 23 June 2024 at 2:50pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Regarding XTP_NM_REPORT_PRESORTORDERCHANGED
Posted By: znakeeye
Subject: Regarding XTP_NM_REPORT_PRESORTORDERCHANGED
Date Posted: 07 October 2008 at 12:02pm
XTP 12.0.1.
 
When I catch XTP_NM_REPORT_PRESORTORDERCHANGED I would like to be able to stop the sorting.
 
The reason for this is that when I click a column header, I want to re-populate the control with new data from an SQL-database where I specify "ORDER BY ClickedColumn". Hence, sorting the items on client side is of no interest!
 
I think I can override CXTPReportHeader::OnLButtonUp and somehow avoid the unwanted sort/populate (if I can escape friend class hell), but I would expect this message to have this functionality. Perhaps XTP_NM_REPORTCOLUMNRESIZE should be extended with a "bCancel" which would then be sent together with this message?



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