Mech_Engineer
Mech_Engineer

Reputation: 555

class property displayed name in propertygrid

How do I set the displayed name of property in the property grid?

Public Property WeldOrientation As Double

WeldOrientation is not proper formatted, a space between the two words is required. How do you set the displayed name for a property?

Thank you.

Upvotes: 1

Views: 175

Answers (1)

You can use the DisplayName attribute:

<DisplayName("Weld Orientation")>
Public Property WeldOrientation As Double

You may have to add a reference to System.ComponentModel to use it.

Upvotes: 2

Related Questions