property grid

  • Thread starter Thread starter jg
  • Start date Start date
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.
 
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
 
Back
Top