PropertyGridItems - how to iterate over collection |
Post Reply |
Author | |
AndyK3
Newbie Joined: 29 August 2010 Status: Offline Points: 2 |
Post Options
Thanks(0)
Posted: 29 August 2010 at 5:53am |
I am new to CodeJock and I have been experimenting with thePropertyGrid. I have created a propertygrid that looks similar to the sample provided by CJ.
It has 4 Categories, each category has a number of Items and each Item in a Category has its own Items as well.
I'd like to iterate over the collection of Items and Categories to pick up values so that I can build an XML document and pass it to my application.
I need to flatten the structure and pass Name:Value pairs in the XML.
I see there is a Categories collection of the PropertyGrid which shows the 4 categories but I can't understand how to get at the Items collection.
Any help greatly appreciated
Thank you
Andy
CodeJock 13.1.0
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Our sample has such code....Please check it first. 'Enumeration Samples For Each Category In wndPropertyGrid.Categories Debug.Print "Category "; Category.Caption For Each Item In Category.Childs Debug.Print " Item "; Item.Caption Next Next |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
AndyK3
Newbie Joined: 29 August 2010 Status: Offline Points: 2 |
Post Options
Thanks(0)
|
Thanks Oleg - this works a treat.
Andy
|
|
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 |