Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Property Grid
  New Posts New Posts RSS Feed - Faster Constraint Add
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Faster Constraint Add

 Post Reply Post Reply
Author
Message
jemery View Drop Down
Groupie
Groupie


Joined: 09 January 2008
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote jemery Quote  Post ReplyReply Direct Link To This Post Topic: Faster Constraint Add
    Posted: 10 June 2008 at 5:14pm
I have a rather massive property grid, or I should say one with thousands of parameters.  Is there any faster method of adding multiple constraints (like an override with a string[] passed in)?

            item.Constraints.Clear();
            int i = 0;
            for (i=0; i<constraints.strings.Length; i++)
            {
                item.Constraints.Add(constraints.strings, i);
            }

Right now this seems to be the only method, but I'm sure internally it could be performing this action a lot faster.

Apologies if someone has already asked this.  I don't see it mentioned in the forums.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 11 June 2008 at 1:15am
Hello,
 
There is no other methods.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.