Print Page | Close Window

Faster Constraint Add

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=10980
Printed Date: 07 July 2024 at 9:20pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Faster Constraint Add
Posted By: jemery
Subject: Faster Constraint Add
Date 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.



Replies:
Posted By: Oleg
Date Posted: 11 June 2008 at 1:15am
Hello,
 
There is no other methods.


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