Print Page | Close Window

Retrieving data from a PropertyGrid....

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=788
Printed Date: 24 December 2024 at 8:57pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Retrieving data from a PropertyGrid....
Posted By: ddlittle
Subject: Retrieving data from a PropertyGrid....
Date Posted: 26 May 2004 at 3:35pm

What's the best way to walk through a property grid and grab all the data?  Each branch has multiple children, like a tree control.  I wrote a recursive function to go from the top to the bottom, but it skips some lines.  I was hoping for something like "GetRow(rowNumber)" or something....

Please Help!

Thanks!

- David




Replies:
Posted By: ddyer
Date Posted: 27 May 2004 at 10:10am

Why does your recursive descent skip lines? 

One way to get the data is to be proactive about it and snag it on a  XTPWM_PROPERTYGRID_NOTIFY event.

The problem with that is if your grid looses focus, you won't get the event.  For example, you could have had a custom toolbar on the propertygrid that takes action on the grid contents.



Posted By: ddlittle
Date Posted: 27 May 2004 at 11:25am

We are populating the PG from a file, and re-writing that file from the data in the PG (there isn't really an internal data structure), so catching XTPWM_PROPERTRYGRID_NOTIFY would only catch what the user has modified.  We need to whole grid...

I think I've solved the recursive read thing, but still hare having some problems with UI type stuff, like cut/copy/paste.

Thanks!

-David




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