Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Regarding XTP_NM_REPORT_PRESORTORDERCHANGED
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Regarding XTP_NM_REPORT_PRESORTORDERCHANGED

 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: Regarding XTP_NM_REPORT_PRESORTORDERCHANGED
    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?
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.155 seconds.