property grid


J

jg

Hi,
hi can I define my own property names to be displayed in the property grid
component.

I know you have to implement the IcustomTypeDescriptor, but I just saw some
complicated examples with globalizing all of the names in the property grid.
What is the fastest way to display custom property names in the property
grid control.

Thanks.
 
Ad

Advertisements

C

Christopher Kimbell

You can use the DescriptionAttribute and CategoryAttribute to add more
information to a property.
The name of the property is the name shown in the PropertyGrid.

If you want editing of complex properties, not simple types like int, float,
bool etc, you have to create
a custom editor. For an example look at the Ghengis project on
http://www.gotdotnet.com/Community/Workspaces/Workspace.aspx?id=dfd0b577-2e9
7-4d21-90c4-6ca9d83e47ad

in the ContainerStatusBar.cs you will find the ContainerStatusBarDesigner
class.


Hope this helps

Chris
 

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

Similar Threads

Property Grid 0
Property Grid 0
Property Grid 1
Finding Grid Positions in a Property Grid 0
Problem with property grid 0
Property grid with listview 0
multicolumn property-grid 0
Property grid navigation 3

Top