Attributes
This article contains a list of some of the more important and more commonly used attributes used with RadPropertyGrid.
EditorAttribute
With the editor attribute you can specify UITypeEditor as well as BaseInputEditor to be used for a given property.
Figure 1: EditorAttribute
RadRangeAttribute
The range attribute allows you to set a minimum and maximum value to be used for a property that is edited with a RadSpinEditor.
Figure 2: RadRangeAttribute
BrowsableAttribute
Determines whether the property will be included in the collection of properties RadPropertyGridSHows.
Figure 3: BrowsableAttribute
ReadOnlyAttribute
Determines whether a property can be edited in RadPropertyGrid or not.
DisplayNameAttribute
Determines the text that will be show for a given property. You can also alter the text for a property by setting its Label.
Figure 4: DisplayNameAttribute
DescriptionAttribute
Defines the text that is displayed for a given property in the help bar of RadPropertyGrid.
Figure 5: DisplayNameAttribute
PasswordPropertyTextAttribute
Determines whether a text property will be edited as a password.
Figure 6: PasswordPropertyTextAttribute
DefaultValueAttribute
Defines the default value to which the property will reset. When the property value is set to something different that the default value, it will be marked as modified.
Figure 7: DefaultValueAttribute
CategoryAttribute
Defines the category to which the property will be grouped when properties are shown categorized. Any property that does not have this attribute will be categorized in the Misc category.
Figure 8: CategoryAttribute
RadSortOrderAttribute
Defines the order in which items would be ordered when no other ordering is applied (Alphabetical or Categorical alphabetical). The order can also be manipulated through the SortOrder property of PropertyGridItem. Setting the property would override the value from the attribute.
Figure 9: RadSortOrderAttribute
RadCheckBoxThreeStateAttribute
The RadCheckBoxThreeStateAttribute determines whether properties inside RadPropertyGrid, for which a PropertyGridCheckBoxItemElement is created, will have a three state check box editor or a two state one.
Figure 10: RadCheckBoxThreeStateAttribute
TypeConverterAttribute
The TypeConverterAttribute specifies what type to use as a converter for the object this attribute is bound to.