Property Grid

  • Thread starter Thread starter Ananth
  • Start date Start date
A

Ananth

I would like to know if we can enter properties (name-value pairs)
dynamically into a property grid object using C#. Also is it possible
to have the text in the property grid (within the indiidual sections)
show up in different fonts(bold, italics etc).

Ananth
 
Hi Ananth
It is not a built in function. but it can be done
Mohamed Mahfouz
MEA Developer Support Center
ITworx on behalf of Microsoft EMEA GTSC
 
Is there a way by which the property grid object in .NET can be
updated dynamically by the properties (name-value pairs) that the user
specifies as part of the user interaction in a GUI. The user is free
to enter as a property name any name that he likes so I cannot create
a set of Property objects statically which could just be linked as
propertygrid.Selected object.
I would appreciate if you could provide me sample code or pointers for
the same.
Ananth
 
Good luck. The property grid is great, but as far as I have seen, manually
adding items to it is next to impossible.

But, there is an option... CodeDom. As your users enter in name/value pairs,
dynamically build a class and rebind it to the property grid. Then, when
they are done, just CodeDom the class one final time and do what you need
to.

--
HTH

Kyril Magnos

Question of the day:
What is Mono?
A) Disease where the lymph nodes become swollen.
B) A single sound
C) A synonym for one
D) A port of .NET meant to royally irritate MSFT
E) All of the above.

| Is there a way by which the property grid object in .NET can be
| updated dynamically by the properties (name-value pairs) that the user
| specifies as part of the user interaction in a GUI. The user is free
| to enter as a property name any name that he likes so I cannot create
| a set of Property objects statically which could just be linked as
| propertygrid.Selected object.
| I would appreciate if you could provide me sample code or pointers for
| the same.
| Ananth
 
Hi Mohamed,
Could you elaborate further on how it could be done, please take into
account the next mail that I have posted on the same thread where I have
elaborated further on the problem
Thanks,
Ananth
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top