Print Page | Close Window

Sort() problem in 12.0.1

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Property Grid
Forum Description: Topics Related to Codejock Property Grid
URL: http://forum.codejock.com/forum_posts.asp?TID=15845
Printed Date: 21 November 2024 at 11:57am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Sort() problem in 12.0.1
Posted By: znakeeye
Subject: Sort() problem in 12.0.1
Date 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?



Replies:
Posted By: Oleg
Date Posted: 15 December 2009 at 4:57am

Hi,

After Sort you can call grid.Refresh() to update items.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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