How to determine an Item is a category? |
Post Reply |
Author | |
ianp
Moderator Group Joined: 19 December 2003 Location: United Kingdom Status: Offline Points: 119 |
Post Options
Thanks(0)
Posted: 22 June 2005 at 1:45am |
In the RClick event of the PropertyGrid, I display a popup menu. The menu displayed varies depending on whether the item passed to the RClick event is a category or a child item. However, I cannot seem to find any way of the PropertyGrid control telling me whether the Item is a category or not. I can manually work it out using
So here's my questions:
See Sample Code below:
Edited by ianp |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Thank you for this post. 1. Right, for next version root category will have PropertyItemCategory type. 2. For now, you can check Parent property of the Item to determine if it root category. It must be "Nothing". |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
ianp
Moderator Group Joined: 19 December 2003 Location: United Kingdom Status: Offline Points: 119 |
Post Options
Thanks(0)
|
thanks oleg... waiting on the next release with great anticipation! Any thoughts on the Item.ID values not forced to be unique? Should the control prevent duplicate ID's being set? |
|
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 |