![]() |
Constraint Index |
Post Reply
|
| Author | ||||
ianp
Moderator Group
Joined: 19 December 2003 Location: United Kingdom Status: Offline Points: 119 |
Post Options
Thanks(0)
Quote Reply
Topic: Constraint IndexPosted: 22 July 2004 at 5:10am |
|||
|
Currently I am creating a constrained item from a adodb recordset which contains a primary key field and a descriptive text field. I would like the user to select a value for the property using the descriptive text field, but use the primary key in my code. Using a standard VB.ComboBox, I would add an item using the descriptive field in the recordset and then set the ItemData using the Primary Key field. However, with the PropertyGrid I need to work around the fact that an item constraint only has an Index and Caption property, it does not have an "ItemData" property. Here's what I'm doing (I've taken the recordset out of the code for simplicity):
Is there any way of, at the very least, exposing the index for the constraint selected e.g.
or, ideally, adding an ItemData (and/or Key) to the constraint? e.g.
Better yet, be able to access an items selected constraint directly from the item e.g.
|
||||
![]() |
||||
ianp
Moderator Group
Joined: 19 December 2003 Location: United Kingdom Status: Offline Points: 119 |
Post Options
Thanks(0)
Quote Reply
Posted: 23 July 2004 at 3:38am |
|||
|
I've just read the version 9.0 release notes and this functionality is (partially?) included in the MFC version
What are the chances of having these in the next ActiveX version?
|
||||
![]() |
||||
ianp
Moderator Group
Joined: 19 December 2003 Location: United Kingdom Status: Offline Points: 119 |
Post Options
Thanks(0)
Quote Reply
Posted: 20 October 2004 at 10:56am |
|||
|
Any chance this can be implemented soon?
|
||||
![]() |
||||
SuperMario
Senior Member
Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
Quote Reply
Posted: 23 February 2005 at 1:04pm |
|||
|
This functionality is now included (Version 9.60)
|
||||
![]() |
||||
ianp
Moderator Group
Joined: 19 December 2003 Location: United Kingdom Status: Offline Points: 119 |
Post Options
Thanks(0)
Quote Reply
Posted: 24 February 2005 at 1:51am |
|||
|
thanks supermario is the item.selectedconstraint property included? I couldn't see it... |
||||
![]() |
||||
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 24 February 2005 at 4:30am |
|||
|
Use PropertyItemEnum type (see sample)
|
||||
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
||||
![]() |
||||
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 |