Print Page | Close Window

Remove all Categories

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=11903
Printed Date: 29 June 2024 at 6:26pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Remove all Categories
Posted By: webjeff
Subject: Remove all Categories
Date Posted: 20 August 2008 at 10:54am
How do I remove all categories??
 
I tried this:
for(int i = 0;i < m_wndPropertyGrid.GetCount();i++)
{
    if (m_wndPropertyGrid.GetCategories()->GetAt(i))
        m_wndPropertyGrid.GetCategories()->GetAt(i)->Remove();
}
m_wndPropertyGrid.Refresh();
 
But that didn't work, it removes some of the items, not all of them.
 
Any ideas??
Jeff.



Replies:
Posted By: Oleg
Date Posted: 20 August 2008 at 1:21pm
Hi,
 
GetCategories()->Clear();


-------------
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