Print Page | Close Window

How to walk through all items?

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=3223
Printed Date: 16 November 2024 at 8:16am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to walk through all items?
Posted By: Martin
Subject: How to walk through all items?
Date Posted: 15 November 2005 at 6:58am

Hello,

I have filled a CXTPPropertyGrid with items, with just one category (parent).

Since all the items are loaded from the database I never know how many items I have in the list.

I now need to walk through the list to get access to each propertygriditem to read its values to write them back to the database.

I tried this:

CXTPPropertyGridItems *pItems = m_wndPropertyGrid.GetCategories();

I get a valid pointer but the itemcount is set to zero.

Is there any way to retrieve a pointer to the CXTPPropertyGridItems class (or similar functionality) in a similar way to access each individual propertygriditem?

TIA,

Martin




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