MultiSort GetSortOrder Runtime |
Post Reply |
Author | |
developer
Newbie Joined: 05 August 2004 Status: Offline Points: 26 |
Post Options
Thanks(0)
Posted: 14 June 2007 at 5:00pm |
I am trying to sort the columns through code and it is not working. what am I doing wrong???
// Group by type CXTPReportColumn* pCol = m_wndReport.GetColumns()->Find(COLUMN_TYPE); m_wndReport.GetColumns()->GetGroupsOrder()->Clear(); m_wndReport.GetColumns()->GetGroupsOrder()->Add(pCol); // Clear Sort Order m_wndReport.GetColumns()->GetSortOrder()->Clear(); // Sort by checked first pCol = m_wndReport.GetColumns()->Find(COLUMN_CHECK); m_wndReport.GetColumns()->GetSortOrder()->Add(pCol, TRUE); // Then sort by Name pCol = m_wndReport.GetColumns()->Find(COLUMN_NAME); m_wndReport.GetColumns()->GetSortOrder()->Add(pCol, TRUE); ASSERT(m_wndReport.GetColumns()->GetSortOrder()->GetCount() == 2); this is not sorting it at all.. I would like to first sort by the checked items (have them at top) and then sort the rest by the name.. |
|
developer
Newbie Joined: 05 August 2004 Status: Offline Points: 26 |
Post Options
Thanks(0)
|
m_wndReport.Populate();
|
|
developer
Newbie Joined: 05 August 2004 Status: Offline Points: 26 |
Post Options
Thanks(0)
|
populate is called after the above setup.. uhg. why can't I edit my own posts?? :(
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |