Print Page | Close Window

Capture the index of Constraints

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=12076
Printed Date: 22 May 2025 at 12:37pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Capture the index of Constraints
Posted By: mg23
Subject: Capture the index of Constraints
Date Posted: 04 September 2008 at 3:24pm

Is there a way to capture the index of the constraint that was changed in a drop down?

For example.  Say I have a drop down that displays names of cities.  If a user selects the 5th city in the drop down, is there a way for me to capture that index in the _ValueChanged event?  What I'm trying to do is update a .txt file with both the .Caption and the .Data values of the constraint so I need to reference them like;
 
Item.Constraints(5).Caption
Item.Constraints(5).Data
 
where (5) is the index of the selected drop down.



Replies:
Posted By: Oleg
Date Posted: 08 September 2008 at 4:14am
Hello,
Sorry, no. You can only loop your constrains and find it.


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