Click here to Skip to main content
16,020,568 members
Home / Discussions / Windows Forms
   

Windows Forms

 
AnswerRe: PropertyGrid control slow to load because it automatically "reflects" on all controls in current application ? Pin
led mike17-Jun-09 4:40
led mike17-Jun-09 4:40 
GeneralRe: PropertyGrid control slow to load because it automatically "reflects" on all controls in current application ? Pin
BillWoodruff17-Jun-09 5:07
professionalBillWoodruff17-Jun-09 5:07 
GeneralRe: PropertyGrid control slow to load because it automatically "reflects" on all controls in current application ? Pin
led mike17-Jun-09 5:48
led mike17-Jun-09 5:48 
GeneralRe: PropertyGrid control slow to load because it automatically "reflects" on all controls in current application ? Pin
BillWoodruff17-Jun-09 6:02
professionalBillWoodruff17-Jun-09 6:02 
GeneralRe: PropertyGrid control slow to load because it automatically "reflects" on all controls in current application ? Pin
DaveyM6917-Jun-09 6:11
professionalDaveyM6917-Jun-09 6:11 
GeneralRe: PropertyGrid control slow to load because it automatically "reflects" on all controls in current application ? Pin
led mike17-Jun-09 6:20
led mike17-Jun-09 6:20 
Generalto Led Mike and DaveyM69 : Re: PropertyGrid control slow to load because it automatically "reflects" on all controls in current application ? Pin
BillWoodruff17-Jun-09 11:06
professionalBillWoodruff17-Jun-09 11:06 
GeneralRe: to Led Mike and DaveyM69 : Re: PropertyGrid control slow to load because it automatically "reflects" on all controls in current application ? Pin
Scott Dorman17-Jun-09 12:57
professionalScott Dorman17-Jun-09 12:57 
It's possible what you are seeing is related to performance concerns in VS2010 but to be more certain you should test the same solution in VS2008 as well.

Based on your other posts, it sounds like you are creating an application containing a property grid and, at runtime, displaying the public properties of a given UI element in the property grid.

No matter what, when you set the SelectedObject property of the property grid to any object the default behavior is for the property grid to reflectively bind to all public properties of that object. The only thing that changes this behavior is if the object implements ICustomTypeDescriptor and provides an implemenation of GetProperties() to return the "public" properties that are available.

Instantiating the property grid at "run-time rather than at design-time" will make absolutely no difference in it's behavior. Likewise, having the property grid in a dialog or on the main form will also have no difference.

I'm interested to know if you are doing this purely as a test project or actually have real-world scenario you are trying to solve with this implementation. We make heavy use of property grids at work, both letting the grid do it's own binding and informing the grid through GetProperties() and have had very few issues. (This is all in VS2008.)

Scott Dorman
Microsoft® MVP - Visual C# | MCPD
President - Tampa Bay IASA

[Blog][Articles][Forum Guidelines]
Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai

GeneralRe: to Led Mike and DaveyM69 : Re: PropertyGrid control slow to load because it automatically "reflects" on all controls in current application ? Pin
BillWoodruff17-Jun-09 19:54
professionalBillWoodruff17-Jun-09 19:54 
QuestionHow to hook up a VScrollBar to a control? Pin
Alan Burkhart16-Jun-09 19:00
Alan Burkhart16-Jun-09 19:00 
AnswerRe: How to hook up a VScrollBar to a control? Pin
Eslam Afifi17-Jun-09 1:03
Eslam Afifi17-Jun-09 1:03 
Questionget Operating System name using c# Pin
myms.net15-Jun-09 21:17
myms.net15-Jun-09 21:17 
AnswerRe: get Operating System name using c# Pin
Luc Pattyn15-Jun-09 23:06
sitebuilderLuc Pattyn15-Jun-09 23:06 
AnswerRe: get Operating System name using c# Pin
dan!sh 17-Jun-09 2:56
professional dan!sh 17-Jun-09 2:56 
AnswerRe: get Operating System name using c# Pin
DaveyM6917-Jun-09 5:26
professionalDaveyM6917-Jun-09 5:26 
GeneralRe: get Operating System name using c# Pin
dan!sh 18-Jun-09 6:04
professional dan!sh 18-Jun-09 6:04 
QuestionDefault TitleBar move behavior of a Form set as a child of another Form odd ? Pin
BillWoodruff15-Jun-09 20:39
professionalBillWoodruff15-Jun-09 20:39 
Questionmail body have to display in multiple lines Pin
myms.net15-Jun-09 2:07
myms.net15-Jun-09 2:07 
AnswerRe: mail body have to display in multiple lines Pin
Dave Kreskowiak15-Jun-09 3:57
mveDave Kreskowiak15-Jun-09 3:57 
Questionhow to add multiple envelopes in word doc Pin
srimail0915-Jun-09 0:51
srimail0915-Jun-09 0:51 
QuestionContainer control inside a UserControl Pin
Bashir Magomedov14-Jun-09 22:35
Bashir Magomedov14-Jun-09 22:35 
AnswerRe: Container control inside a UserControl Pin
Bashir Magomedov14-Jun-09 22:57
Bashir Magomedov14-Jun-09 22:57 
QuestionArabic printing with "?" mark Pin
Ahamed Azeem13-Jun-09 20:35
Ahamed Azeem13-Jun-09 20:35 
AnswerRe: Arabic printing with "?" mark Pin
Mycroft Holmes14-Jun-09 19:05
professionalMycroft Holmes14-Jun-09 19:05 
GeneralRe: Arabic printing with "?" mark Pin
Ahamed Azeem14-Jun-09 20:58
Ahamed Azeem14-Jun-09 20:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.