New to Telerik UI for WinFormsStart a free 30-day trial

WinForms PropertyGrid Overview

Updated over 6 months ago

When RadPropertyGrid is not in read-only mode users can edit the contents of the selected item. Usually this process starts by pressing Enter or F2 key. All of the following conditions should be met to put an item in edit mode:

  • The underlying data source supports editing.

  • RadPropertyGrid control is enabled.

  • BeginEditMode property value is not BeginEditProgrammatically.

  • ReadOnly property of the control is set to false.

  • The item the user wants to edit is enabled.

  • The ReadOnly property of item the user wants to edit is set to false.

When in edit mode, the user can change the item value and press Enter to commit the change or Esc to revert to the original value. Clicking outside the edited item also commits the change.

You can configure RadPropertyGrid so that items enter edit mode directly when the item is selected or when users press F2 or Enter or click for a second time on the item without triggering a double click event. The BeginEditMode property controls this behavior.

There are a number of build-in ediotrs which are used for editing different data types. These editors can be customized or can be replaced by custom editors all together. Here is a list of the build-in ediotrs and the data types they are used for:

PropertyGridBrowseEditorUsed for editing of type image.
PropertyGridColorEditorUsed for editing of type color.
PropertyGridDateTimeEditorUsed for editing of type DateTime.
PropertyGridDropDownListEditorUsed for editing of types that have a type converter supporting standart values and do not have a UITypeEditor.
PropertyGridSpinEditorUsed for editing of numeric data types.
PropertyGridTextBoxEditorUsed for editing all data types that are not covered by other editors.
PropertyGridUITypeEditorUsed for editing data types that have a UITypeEditor and are not covered by other editors.

Since R3 2017 PropertyGridSpinEditor supports null values. Detailed information is available here.

APIDemonstrates how to control the editing process programmatically.
EventsDemonstrates all events that occur during this process.
Data validationDemonstrates how to validate data in RadPropertyGrid.
Customizing editor behaviorDemonstrates how to change editor behavior.
Using custom editorsDemonstrates how to replace the standard editors with a custom one.
Handling editor eventsDemonstrates how to handle editor events.

See Also

In this article
See Also
Not finding the help you need?
Contact Support