Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Property Grid
  New Posts New Posts RSS Feed - Sort() problem in 12.0.1
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Sort() problem in 12.0.1

 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: Sort() problem in 12.0.1
    Posted: 14 December 2009 at 11:46am

pMyCategory->GetChilds()->Clear();
// Add items...
pMyCategory->GetChilds()->Sort(); // Does NOT work!

However, if I destroy the object completely and re-add it, it works!

pMyCategory->Remove();
pMyCategory = m_wndPropertyGrid.AddCategory(IDS_MY_CATEGORY);
// Add items...
pMyCategory->GetChilds()->Sort(); // Works!
 
 
I've only tested this in 12.0.1. Do you recognize this behavior?
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 15 December 2009 at 4:57am

Hi,

After Sort you can call grid.Refresh() to update items.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.203 seconds.