Class
RadPropertyGrid

Represents a property grid control that displays object properties in a structured grid format with property names in the first column and their corresponding values in the second column. Provides comprehensive property editing capabilities with support for various data types and custom editors.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

cs-api-definition
[TelerikToolboxCategory("Editors")]
public class RadPropertyGrid : RadControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IAnalyticsProvider

Inheritance: objectMarshalByRefObjectComponentControlScrollableControlRadControlRadPropertyGrid

Implements: IAnalyticsProviderIBindableComponentIComponentIComponentTreeHandlerIDisposableIDropTargetILayoutHandlerINotifyPropertyChangedISupportInitializeISupportInitializeNotificationISynchronizeInvokeIWin32Window

Inherited Members RadControl.isResizing2RadControl.isDisposing2RadControl.invalidResizeRectRadControl.isAccessibilityRequestedRadControl.Construct()RadControl.CreateBehavior()RadControl.CreateRootElement()RadControl.InitializeRootElement(RootRadElement)RadControl.LoadElementTree()RadControl.LoadElementTree(Size)RadControl.SetBackColorThemeOverrides()RadControl.ResetBackColorThemeOverrides()RadControl.SetForeColorThemeOverrides()RadControl.ResetForeColorThemeOverrides()RadControl.OnKeyUp(KeyEventArgs)RadControl.OnPreviewKeyDown(PreviewKeyDownEventArgs)RadControl.OnClick(EventArgs)RadControl.OnDoubleClick(EventArgs)RadControl.OnMouseHover(EventArgs)RadControl.OnMouseCaptureChanged(EventArgs)RadControl.OnGotFocus(EventArgs)RadControl.OnLostFocus(EventArgs)RadControl.OnCreateControl()RadControl.OnHandleDestroyed(EventArgs)RadControl.OnParentChanged(EventArgs)RadControl.OnVisibleChanged(EventArgs)RadControl.OnFontChanged(EventArgs)RadControl.OnForeColorChanged(EventArgs)RadControl.OnBackColorChanged(EventArgs)RadControl.OnEnabledChanged(EventArgs)RadControl.OnBindingContextChanged(EventArgs)RadControl.OnLocationChanged(EventArgs)RadControl.OnPaddingChanged(EventArgs)RadControl.OnRightToLeftChanged(EventArgs)RadControl.OnPaint(PaintEventArgs)RadControl.OnLayout(LayoutEventArgs)RadControl.OnAutoSizeChanged(EventArgs)RadControl.OnInvalidated(RadElement)RadControl.OnCaptureLosing()RadControl.OnThemeChanged()RadControl.OnToolTipTextNeeded(object, ToolTipTextNeededEventArgs)RadControl.OnScreenTipNeeded(object, ScreenTipNeededEventArgs)RadControl.OnThemeNameChanged(ThemeNameChangedEventArgs)RadControl.ProcessMnemonic(char)RadControl.ProcessFocusRequested(RadElement)RadControl.ProcessCaptureChangeRequested(RadElement, bool)RadControl.ProcessAutoSizeChanged(bool)RadControl.GetInputElement()RadControl.BeginInit()RadControl.EndInit()RadControl.OnNotifyPropertyChanged(string)RadControl.OnNotifyPropertyChanged(PropertyChangedEventArgs)RadControl.GetPreferredSize(Size)RadControl.SetBoundsCore(int, int, int, int, BoundsSpecified)RadControl.GetRootElementDesiredSize(int, int, int, int)RadControl.OnZoomGesture(ZoomGestureEventArgs)RadControl.OnRotateGesture(RotateGestureEventArgs)RadControl.OnPanGesture(PanGestureEventArgs)RadControl.OnTwoFingerTapGesture(GestureEventArgs)RadControl.OnPressAndTapGesture(PressAndTapGestureEventArgs)RadControl.OnGesture(GestureEventArgs)RadControl.ProcessGesture(Message)RadControl.EnableGesture(GestureType)RadControl.DisableGesture(GestureType)RadControl.Refresh()RadControl.SuspendUpdate()RadControl.ResumeUpdate()RadControl.ResumeUpdate(bool)RadControl.InvokeLayoutCallback(LayoutCallback)RadControl.RegisterHostedControl(RadHostItem)RadControl.UnregisterHostedControl(RadHostItem, bool)RadControl.ResolveStyleGroupForElement(StyleGroup, RadObject)RadControl.GetPlainText()RadControl.ShouldSerializeProperty(RadProperty)RadControl.ShouldSerializeProperty(RadProperty, RadObject)RadControl.ResetProperty(RadProperty, RadObject)RadControl.CanEditElementAtDesignTime(RadElement)RadControl.ProcessCodedUIMessage(ref IPCMessage)RadControl.FindPropertyInChildren(RadControl, IPCMessage)RadControl.ScaleControl(SizeF, BoundsSpecified)RadControl.PerformRadAutoScale(BoundsSpecified?)RadControl.GetMonitorDpiScaleFactor(Control)RadControl.SetRadAutoScale(bool)RadControl.EnableDpiScalingRadControl.EnableRadAutoScaleRadControl.EnableRadFormInitialDpiScalingRadControl.EnableImageDpiScalingRadControl.EnableSvgImagesRadControl.IsLoadedRadControl.ElementTreeRadControl.UseCompatibleTextRenderingDefaultValueRadControl.BehaviorRadControl.RootElementRadControl.PaddingRadControl.ThemeNameRadControl.TextRadControl.EnableThemingRadControl.ThemeClassNameRadControl.ImageListRadControl.ImageScalingSizeRadControl.UseCompatibleTextRenderingRadControl.AutoSizeRadControl.MaximumSizeRadControl.MinimumSizeRadControl.FocusableRadControl.SiteRadControl.CausesValidationRadControl.IsInitializingRadControl.SmallImageListRadControl.SmallImageScalingSizeRadControl.IsDesignModeRadControl.IsDisplayedRadControl.FocusedElementRadControl.AllowShowFocusCuesRadControl.ShowItemToolTipsRadControl.CommandBindingsRadControl.EnableKeyMapRadControl.BackColorRadControl.ForeColorRadControl.FontRadControl.ValidationCancelRadControl.EnableAnalyticsRadControl.AnalyticsNameRadControl.EnableRadAccessibilityObjectsRadControl.EnableCodedUITestsRadControl.EnableCodedUITestsDefaultValueRadControl.EnableUIAutomationRadControl.EnableUIAutomationDefaultValueRadControl.ElementInvalidatedRadControl.ToolTipTextNeededRadControl.ScreenTipNeededRadControl.ThemeNameChangedRadControl.InitializedRadControl.PropertyChangedRadControl.ZoomGestureRadControl.RotateGestureRadControl.PanGestureRadControl.TwoFingerTapGestureRadControl.PressAndTapGestureScrollableControl.ScrollStateAutoScrollingScrollableControl.ScrollStateHScrollVisibleScrollableControl.ScrollStateVScrollVisibleScrollableControl.ScrollStateUserHasScrolledScrollableControl.ScrollStateFullDragScrollableControl.AdjustFormScrollbars(bool)ScrollableControl.GetScrollState(int)ScrollableControl.OnPaintBackground(PaintEventArgs)ScrollableControl.SetDisplayRectLocation(int, int)ScrollableControl.ScrollControlIntoView(Control)ScrollableControl.ScrollToControl(Control)ScrollableControl.OnScroll(ScrollEventArgs)ScrollableControl.SetAutoScrollMargin(int, int)ScrollableControl.SetScrollState(int, bool)ScrollableControl.AutoScrollScrollableControl.AutoScrollMarginScrollableControl.AutoScrollPositionScrollableControl.AutoScrollMinSizeScrollableControl.CreateParamsScrollableControl.DisplayRectangleScrollableControl.HScrollScrollableControl.HorizontalScrollScrollableControl.VScrollScrollableControl.VerticalScrollScrollableControl.ScrollControl.GetAccessibilityObjectById(int)Control.SetAutoSizeMode(AutoSizeMode)Control.GetAutoSizeMode()Control.AccessibilityNotifyClients(AccessibleEvents, int)Control.AccessibilityNotifyClients(AccessibleEvents, int, int)Control.BeginInvoke(Delegate)Control.BeginInvoke(Delegate, params object[])Control.BringToFront()Control.Contains(Control)Control.CreateControlsInstance()Control.CreateGraphics()Control.CreateHandle()Control.CreateControl()Control.DefWndProc(ref Message)Control.DestroyHandle()Control.DoDragDrop(object, DragDropEffects)Control.DrawToBitmap(Bitmap, Rectangle)Control.EndInvoke(IAsyncResult)Control.FindForm()Control.GetTopLevel()Control.RaiseKeyEvent(object, KeyEventArgs)Control.RaiseMouseEvent(object, MouseEventArgs)Control.Focus()Control.FromChildHandle(IntPtr)Control.FromHandle(IntPtr)Control.GetChildAtPoint(Point, GetChildAtPointSkip)Control.GetChildAtPoint(Point)Control.GetContainerControl()Control.GetScaledBounds(Rectangle, SizeF, BoundsSpecified)Control.GetNextControl(Control, bool)Control.GetStyle(ControlStyles)Control.Hide()Control.InitLayout()Control.Invalidate(Region)Control.Invalidate(Region, bool)Control.Invalidate()Control.Invalidate(bool)Control.Invalidate(Rectangle)Control.Invalidate(Rectangle, bool)Control.Invoke(Delegate)Control.Invoke(Delegate, params object[])Control.InvokePaint(Control, PaintEventArgs)Control.InvokePaintBackground(Control, PaintEventArgs)Control.IsKeyLocked(Keys)Control.IsInputChar(char)Control.IsMnemonic(char, string)Control.LogicalToDeviceUnits(int)Control.LogicalToDeviceUnits(Size)Control.ScaleBitmapLogicalToDevice(ref Bitmap)Control.NotifyInvalidate(Rectangle)Control.InvokeOnClick(Control, EventArgs)Control.OnBackgroundImageChanged(EventArgs)Control.OnBackgroundImageLayoutChanged(EventArgs)Control.OnCausesValidationChanged(EventArgs)Control.OnContextMenuChanged(EventArgs)Control.OnContextMenuStripChanged(EventArgs)Control.OnCursorChanged(EventArgs)Control.OnDockChanged(EventArgs)Control.OnNotifyMessage(Message)Control.OnParentBackColorChanged(EventArgs)Control.OnParentBackgroundImageChanged(EventArgs)Control.OnParentBindingContextChanged(EventArgs)Control.OnParentCursorChanged(EventArgs)Control.OnParentEnabledChanged(EventArgs)Control.OnParentFontChanged(EventArgs)Control.OnParentForeColorChanged(EventArgs)Control.OnParentRightToLeftChanged(EventArgs)Control.OnParentVisibleChanged(EventArgs)Control.OnPrint(PaintEventArgs)Control.OnTabIndexChanged(EventArgs)Control.OnTabStopChanged(EventArgs)Control.OnTextChanged(EventArgs)Control.OnClientSizeChanged(EventArgs)Control.OnControlAdded(ControlEventArgs)Control.OnControlRemoved(ControlEventArgs)Control.OnHandleCreated(EventArgs)Control.OnDragEnter(DragEventArgs)Control.OnDragOver(DragEventArgs)Control.OnDragLeave(EventArgs)Control.OnDragDrop(DragEventArgs)Control.OnGiveFeedback(GiveFeedbackEventArgs)Control.OnEnter(EventArgs)Control.InvokeGotFocus(Control, EventArgs)Control.OnHelpRequested(HelpEventArgs)Control.OnInvalidated(InvalidateEventArgs)Control.OnLeave(EventArgs)Control.InvokeLostFocus(Control, EventArgs)Control.OnMarginChanged(EventArgs)Control.OnDpiChangedBeforeParent(EventArgs)Control.OnDpiChangedAfterParent(EventArgs)Control.OnMove(EventArgs)Control.OnQueryContinueDrag(QueryContinueDragEventArgs)Control.OnRegionChanged(EventArgs)Control.OnResize(EventArgs)Control.OnSizeChanged(EventArgs)Control.OnChangeUICues(UICuesEventArgs)Control.OnStyleChanged(EventArgs)Control.OnSystemColorsChanged(EventArgs)Control.OnValidated(EventArgs)Control.RescaleConstantsForDpi(int, int)Control.PerformLayout()Control.PerformLayout(Control, string)Control.PointToClient(Point)Control.PointToScreen(Point)Control.PreProcessMessage(ref Message)Control.PreProcessControlMessage(ref Message)Control.ProcessCmdKey(ref Message, Keys)Control.ProcessDialogChar(char)Control.ProcessKeyEventArgs(ref Message)Control.ProcessKeyMessage(ref Message)Control.ProcessKeyPreview(ref Message)Control.RaiseDragEvent(object, DragEventArgs)Control.RaisePaintEvent(object, PaintEventArgs)Control.RecreateHandle()Control.RectangleToClient(Rectangle)Control.RectangleToScreen(Rectangle)Control.ReflectMessage(IntPtr, ref Message)Control.ResetMouseEventArgs()Control.ResetText()Control.ResumeLayout()Control.ResumeLayout(bool)Control.Scale(SizeF)Control.Select()Control.Select(bool, bool)Control.SelectNextControl(Control, bool, bool, bool, bool)Control.SendToBack()Control.SetBounds(int, int, int, int)Control.SetBounds(int, int, int, int, BoundsSpecified)Control.SetClientSizeCore(int, int)Control.SizeFromClientSize(Size)Control.SetStyle(ControlStyles, bool)Control.SetTopLevel(bool)Control.SetVisibleCore(bool)Control.RtlTranslateAlignment(HorizontalAlignment)Control.RtlTranslateAlignment(LeftRightAlignment)Control.RtlTranslateAlignment(ContentAlignment)Control.RtlTranslateHorizontal(HorizontalAlignment)Control.RtlTranslateLeftRight(LeftRightAlignment)Control.RtlTranslateContent(ContentAlignment)Control.Show()Control.SuspendLayout()Control.Update()Control.UpdateBounds()Control.UpdateBounds(int, int, int, int)Control.UpdateBounds(int, int, int, int, int, int)Control.UpdateZOrder()Control.UpdateStyles()Control.OnImeModeChanged(EventArgs)Control.AccessibilityObjectControl.AccessibleDefaultActionDescriptionControl.AccessibleDescriptionControl.AccessibleNameControl.AccessibleRoleControl.AllowDropControl.AnchorControl.AutoScrollOffsetControl.LayoutEngineControl.BackgroundImageControl.BackgroundImageLayoutControl.BindingContextControl.BottomControl.BoundsControl.CanFocusControl.CanRaiseEventsControl.CanSelectControl.CaptureControl.CheckForIllegalCrossThreadCallsControl.ClientRectangleControl.ClientSizeControl.CompanyNameControl.ContainsFocusControl.ContextMenuControl.ContextMenuStripControl.ControlsControl.CreatedControl.CursorControl.DataBindingsControl.DefaultBackColorControl.DefaultCursorControl.DefaultFontControl.DefaultForeColorControl.DefaultMarginControl.DefaultMaximumSizeControl.DefaultMinimumSizeControl.DefaultPaddingControl.DeviceDpiControl.IsDisposedControl.DisposingControl.DockControl.DoubleBufferedControl.EnabledControl.FocusedControl.FontHeightControl.HandleControl.HasChildrenControl.HeightControl.IsHandleCreatedControl.InvokeRequiredControl.IsAccessibleControl.IsMirroredControl.LeftControl.LocationControl.MarginControl.ModifierKeysControl.MouseButtonsControl.MousePositionControl.NameControl.ParentControl.ProductNameControl.ProductVersionControl.RecreatingHandleControl.RegionControl.RenderRightToLeftControl.ResizeRedrawControl.RightControl.RightToLeftControl.ScaleChildrenControl.SizeControl.TabIndexControl.TabStopControl.TagControl.TopControl.TopLevelControlControl.ShowKeyboardCuesControl.ShowFocusCuesControl.UseWaitCursorControl.VisibleControl.WidthControl.PreferredSizeControl.CanEnableImeControl.DefaultImeModeControl.ImeModeControl.ImeModeBaseControl.PropagatingImeModeControl.BackColorChangedControl.BackgroundImageChangedControl.BackgroundImageLayoutChangedControl.BindingContextChangedControl.CausesValidationChangedControl.ClientSizeChangedControl.ContextMenuChangedControl.ContextMenuStripChangedControl.CursorChangedControl.DockChangedControl.EnabledChangedControl.FontChangedControl.ForeColorChangedControl.LocationChangedControl.MarginChangedControl.RegionChangedControl.RightToLeftChangedControl.SizeChangedControl.TabIndexChangedControl.TabStopChangedControl.TextChangedControl.VisibleChangedControl.ClickControl.ControlAddedControl.ControlRemovedControl.DragDropControl.DragEnterControl.DragOverControl.DragLeaveControl.GiveFeedbackControl.HandleCreatedControl.HandleDestroyedControl.HelpRequestedControl.InvalidatedControl.PaddingChangedControl.PaintControl.QueryContinueDragControl.QueryAccessibilityHelpControl.DoubleClickControl.EnterControl.GotFocusControl.KeyDownControl.KeyPressControl.KeyUpControl.LayoutControl.LeaveControl.LostFocusControl.MouseClickControl.MouseDoubleClickControl.MouseCaptureChangedControl.MouseDownControl.MouseEnterControl.MouseLeaveControl.DpiChangedBeforeParentControl.DpiChangedAfterParentControl.MouseHoverControl.MouseMoveControl.MouseUpControl.MouseWheelControl.MoveControl.PreviewKeyDownControl.ResizeControl.ChangeUICuesControl.StyleChangedControl.SystemColorsChangedControl.ValidatingControl.ValidatedControl.ParentChangedControl.ImeModeChangedComponent.Dispose()Component.GetService(Type)Component.ToString()Component.EventsComponent.ContainerComponent.DesignModeComponent.DisposedMarshalByRefObject.MemberwiseClone(bool)MarshalByRefObject.GetLifetimeService()MarshalByRefObject.InitializeLifetimeService()MarshalByRefObject.CreateObjRef(Type)

Constructors

RadPropertyGrid()

Initializes a new instance of the RadPropertyGrid class with default settings.

Declaration

cs-api-definition
public RadPropertyGrid()

Properties

ActiveEditor

Gets the currently active editor instance used for editing property values.

Declaration

cs-api-definition
[Browsable(false)]
public IValueEditor ActiveEditor { get; }

Property Value

IValueEditor

An IValueEditor representing the active editor, or null if no editor is active.

AllowDefaultContextMenu

Gets or sets a value indicating whether the default context menu is enabled.

Declaration

cs-api-definition
public bool AllowDefaultContextMenu { get; set; }

Property Value

bool

The default value is false.

AutoExpandGroups

Gets or sets a value indicating whether property groups are automatically expanded when the property grid is populated.

Declaration

cs-api-definition
[Browsable(true)]
public bool AutoExpandGroups { get; set; }

Property Value

bool

true to automatically expand groups upon creation; otherwise, false. The default value is true.

BeginEditMode

Gets or sets the mode that determines how users can initiate editing of property values.

Declaration

cs-api-definition
[Browsable(true)]
public RadPropertyGridBeginEditModes BeginEditMode { get; set; }

Property Value

RadPropertyGridBeginEditModes

A RadPropertyGridBeginEditModes value specifying the edit initiation mode. The default value is BeginEditOnClick.

DefaultSize

Declaration

cs-api-definition
protected override Size DefaultSize { get; }

Property Value

Size

Overrides Control.DefaultSize

EnableCustomGrouping

Gets or sets a value indicating whether properties can be grouped programmatically using custom grouping logic.

Declaration

cs-api-definition
[Browsable(true)]
public bool EnableCustomGrouping { get; set; }

Property Value

bool

true to enable custom grouping; otherwise, false. The default value is false.

EnableFiltering

Gets or sets a value indicating whether filtering is enabled.

Declaration

cs-api-definition
[Browsable(true)]
public bool EnableFiltering { get; set; }

Property Value

bool

EnableGrouping

Gets or sets a value indicating whether grouping is enabled.

Declaration

cs-api-definition
[Browsable(true)]
public bool EnableGrouping { get; set; }

Property Value

bool

EnableKineticScrolling

Gets or sets a value indicating whether kinetic scrolling is enabled for smooth touch-based scrolling interactions.

Declaration

cs-api-definition
[Browsable(true)]
public bool EnableKineticScrolling { get; set; }

Property Value

bool

true to enable kinetic scrolling; otherwise, false. The default value is false.

EnableSorting

Gets or sets a value indicating whether sorting is enabled.

Declaration

cs-api-definition
[Browsable(true)]
public bool EnableSorting { get; set; }

Property Value

bool

FilterDescriptors

Gets the filter descriptors.

Declaration

cs-api-definition
[Browsable(false)]
public FilterDescriptorCollection FilterDescriptors { get; }

Property Value

FilterDescriptorCollection

FindStringComparer

Gets or sets the string comparer used by the keyboard navigation functionality.

Declaration

cs-api-definition
[Browsable(false)]
public IFindStringComparer FindStringComparer { get; set; }

Property Value

IFindStringComparer

GroupDescriptors

Gets the group descriptors.

Declaration

cs-api-definition
[Browsable(false)]
public GroupDescriptorCollection GroupDescriptors { get; }

Property Value

GroupDescriptorCollection

Groups

Gets the Groups collection.

Declaration

cs-api-definition
[Browsable(false)]
public PropertyGridGroupItemCollection Groups { get; }

Property Value

PropertyGridGroupItemCollection

HelpBarHeight

Gets or sets the height of the PropertyGridHelpElement.

Declaration

cs-api-definition
[Browsable(true)]
public float HelpBarHeight { get; set; }

Property Value

float

HelpVisible

Gets or sets a value indicating whether the PropertyGridHelpElement is visible.

Declaration

cs-api-definition
[Browsable(true)]
public bool HelpVisible { get; set; }

Property Value

bool

IsEditing

Gets a value indicating whether any property editors are currently active and being edited.

Declaration

cs-api-definition
[Browsable(false)]
public bool IsEditing { get; }

Property Value

bool

true if there are open editors; otherwise, false.

ItemHeight

Gets or sets the height of the items.

Declaration

cs-api-definition
[Browsable(true)]
public int ItemHeight { get; set; }

Property Value

int

The height of the item.

ItemIndent

Gets or sets the width of the indentation of subitems.

Declaration

cs-api-definition
[Browsable(true)]
public int ItemIndent { get; set; }

Property Value

int

ItemSpacing

Gets or sets the distance between items of the RadPropertyGridElement.

Declaration

cs-api-definition
[Browsable(true)]
public int ItemSpacing { get; set; }

Property Value

int

Items

Gets the Items collection.

Declaration

cs-api-definition
[Browsable(false)]
public PropertyGridItemCollection Items { get; }

Property Value

PropertyGridItemCollection

KeyboardSearchEnabled

Gets or sets a value that determines whether the user can navigate to an item by typing when RadPropertyGrid is focused.

Declaration

cs-api-definition
[Browsable(true)]
public bool KeyboardSearchEnabled { get; set; }

Property Value

bool

The default value is false.

KeyboardSearchResetInterval

Gets or sets a value that specifies how long the user must wait before searching with the keyboard is reset.

Declaration

cs-api-definition
[Browsable(true)]
public int KeyboardSearchResetInterval { get; set; }

Property Value

int

The default value is 300.

PropertyGridElement

Gets the PropertyGridTableElement of this control.

Declaration

cs-api-definition
[Browsable(false)]
public PropertyGridElement PropertyGridElement { get; }

Property Value

PropertyGridElement

PropertySort

Gets or sets the mode in which the properties will be displayed in the RadPropertyGrid.

Declaration

cs-api-definition
[Browsable(true)]
public PropertySort PropertySort { get; set; }

Property Value

PropertySort

RadContextMenu

Gets or sets the shortcut menu associated with the control.

Declaration

cs-api-definition
public virtual RadContextMenu RadContextMenu { get; set; }

Property Value

RadContextMenu

ReadOnly

Gets or sets a value indicating whether the property grid is in read-only mode, preventing users from editing property values.

Declaration

cs-api-definition
[Browsable(true)]
public bool ReadOnly { get; set; }

Property Value

bool

true if the property grid is read-only; otherwise, false. The default value is false.

SelectedGridItem

Gets or sets the PropertyGridTableElement selected item.

Declaration

cs-api-definition
[Browsable(false)]
public PropertyGridItemBase SelectedGridItem { get; set; }

Property Value

PropertyGridItemBase

SelectedObject

Gets or sets the object which properties the RadPropertyGrid is displaying.

Declaration

cs-api-definition
[TypeConverter(typeof(SelectedObjectConverter))]
[Browsable(true)]
public object SelectedObject { get; set; }

Property Value

object

SelectedObjects

Gets or sets the objects which properties the RadPropertyGrid is displaying.

Declaration

cs-api-definition
[TypeConverter(typeof(SelectedObjectConverter))]
[Browsable(false)]
public object[] SelectedObjects { get; set; }

Property Value

object[]

SortDescriptors

Gets the sort descriptors.

Declaration

cs-api-definition
[Browsable(false)]
public SortDescriptorCollection SortDescriptors { get; }

Property Value

SortDescriptorCollection

SortOrder

Gets or sets the sort order of items.

Declaration

cs-api-definition
[Browsable(true)]
public SortOrder SortOrder { get; set; }

Property Value

SortOrder

ToolbarVisible

Gets or sets a value indicating whether the search box of the RadPropertyGrid should be visible

Declaration

cs-api-definition
[Browsable(true)]
public bool ToolbarVisible { get; set; }

Property Value

bool

Methods

BeginEdit()

Puts the current item in edit mode.

Declaration

cs-api-definition
public void BeginEdit()

BestFit()

Uses a mechanism to maximize the visible strings in both columns of RadPropertyGrid.

Declaration

cs-api-definition
public void BestFit()

BestFit(PropertyGridBestFitMode)

Best fits the column(s) of RadPropertyGrid using the given mode.

Declaration

cs-api-definition
public void BestFit(PropertyGridBestFitMode mode)

Parameters

mode

PropertyGridBestFitMode

The mode that determines the mechanism used for best fitting.

CancelEdit()

Close the currently active editor and discard changes.

Declaration

cs-api-definition
public void CancelEdit()

CollapseAllGridItems()

Collapses all the categories in the RadPropertyGrid.

Declaration

cs-api-definition
public void CollapseAllGridItems()

CreateAccessibilityInstance()

Declaration

cs-api-definition
protected override AccessibleObject CreateAccessibilityInstance()

Returns

AccessibleObject

Overrides Control.CreateAccessibilityInstance()

CreateChildItems(RadElement)

Creates the child elements for the property grid control.

Declaration

cs-api-definition
protected override void CreateChildItems(RadElement parent)

Parameters

parent

RadElement

The parent element that will contain the child elements.

Overrides RadControl.CreateChildItems(RadElement)

CreatePropertyGridElement()

Creates the main PropertyGridElement that provides the core functionality for the property grid.

Declaration

cs-api-definition
protected virtual PropertyGridElement CreatePropertyGridElement()

Returns

PropertyGridElement

A new instance of PropertyGridElement.

Dispose(bool)

Declaration

cs-api-definition
protected override void Dispose(bool disposing)

Parameters

disposing

bool

Overrides RadControl.Dispose(bool)

EndEdit()

Commits any changes and ends the edit operation on the current item.

Declaration

cs-api-definition
public bool EndEdit()

Returns

bool

true if successful.

ExpandAllGridItems()

Expands all the categories in the RadPropertyGrid.

Declaration

cs-api-definition
public void ExpandAllGridItems()

IsInputKey(Keys)

Declaration

cs-api-definition
protected override bool IsInputKey(Keys keyData)

Parameters

keyData

Keys

Returns

bool

Overrides RadControl.IsInputKey(Keys)

OnKeyDown(KeyEventArgs)

Declaration

cs-api-definition
protected override void OnKeyDown(KeyEventArgs e)

Parameters

e

KeyEventArgs

Overrides RadControl.OnKeyDown(KeyEventArgs)

OnKeyPress(KeyPressEventArgs)

Declaration

cs-api-definition
protected override void OnKeyPress(KeyPressEventArgs e)

Parameters

e

KeyPressEventArgs

Overrides RadControl.OnKeyPress(KeyPressEventArgs)

OnLoad(Size)

Notifies that the control is about to be visualized.

Declaration

cs-api-definition
protected override void OnLoad(Size desiredSize)

Parameters

desiredSize

Size

Overrides RadControl.OnLoad(Size)

OnMouseClick(MouseEventArgs)

Declaration

cs-api-definition
protected override void OnMouseClick(MouseEventArgs e)

Parameters

e

MouseEventArgs

Overrides Control.OnMouseClick(MouseEventArgs)

OnMouseDoubleClick(MouseEventArgs)

Declaration

cs-api-definition
protected override void OnMouseDoubleClick(MouseEventArgs e)

Parameters

e

MouseEventArgs

Overrides Control.OnMouseDoubleClick(MouseEventArgs)

OnMouseDown(MouseEventArgs)

Declaration

cs-api-definition
protected override void OnMouseDown(MouseEventArgs e)

Parameters

e

MouseEventArgs

Overrides RadControl.OnMouseDown(MouseEventArgs)

OnMouseEnter(EventArgs)

Declaration

cs-api-definition
protected override void OnMouseEnter(EventArgs e)

Parameters

e

EventArgs

Overrides RadControl.OnMouseEnter(EventArgs)

OnMouseLeave(EventArgs)

Declaration

cs-api-definition
protected override void OnMouseLeave(EventArgs e)

Parameters

e

EventArgs

Overrides RadControl.OnMouseLeave(EventArgs)

OnMouseMove(MouseEventArgs)

Declaration

cs-api-definition
protected override void OnMouseMove(MouseEventArgs e)

Parameters

e

MouseEventArgs

Overrides RadControl.OnMouseMove(MouseEventArgs)

OnMouseUp(MouseEventArgs)

Declaration

cs-api-definition
protected override void OnMouseUp(MouseEventArgs e)

Parameters

e

MouseEventArgs

Overrides RadControl.OnMouseUp(MouseEventArgs)

OnMouseWheel(MouseEventArgs)

Declaration

cs-api-definition
protected override void OnMouseWheel(MouseEventArgs e)

Parameters

e

MouseEventArgs

Overrides RadControl.OnMouseWheel(MouseEventArgs)

OnValidating(CancelEventArgs)

Declaration

cs-api-definition
protected override void OnValidating(CancelEventArgs e)

Parameters

e

CancelEventArgs

Overrides Control.OnValidating(CancelEventArgs)

ProcessDialogKey(Keys)

Declaration

cs-api-definition
protected override bool ProcessDialogKey(Keys keyData)

Parameters

keyData

Keys

Returns

bool

Overrides Control.ProcessDialogKey(Keys)

ResetSelectedProperty()

Resets the selected property to its default value.

Declaration

cs-api-definition
public void ResetSelectedProperty()

WndProc(ref Message)

Declaration

cs-api-definition
protected override void WndProc(ref Message m)

Parameters

m

Message

Overrides RadControl.WndProc(ref Message)

Events

ContextMenuOpening

Occurs when opening the context menu.

Declaration

cs-api-definition
public event PropertyGridContextMenuOpeningEventHandler ContextMenuOpening

Event Value

PropertyGridContextMenuOpeningEventHandler

CreateItem

Occurs when a new item element is going to be created.

Declaration

cs-api-definition
public event CreatePropertyGridItemEventHandler CreateItem

Event Value

CreatePropertyGridItemEventHandler

CreateItemElement

Occurs when a new item element is going to be created.

Declaration

cs-api-definition
public event CreatePropertyGridItemElementEventHandler CreateItemElement

Event Value

CreatePropertyGridItemElementEventHandler

CustomGrouping

Fires for custom grouping operation.

Declaration

cs-api-definition
[Browsable(true)]
public event PropertyGridCustomGroupingEventHandler CustomGrouping

Event Value

PropertyGridCustomGroupingEventHandler

Edited

Occurs when editing has been finished.

Declaration

cs-api-definition
public event PropertyGridItemEditedEventHandler Edited

Event Value

PropertyGridItemEditedEventHandler

Editing

Occurs when editing is started.

Declaration

cs-api-definition
public event PropertyGridItemEditingEventHandler Editing

Event Value

PropertyGridItemEditingEventHandler

EditorInitialized

Occurs when editor is initialized.

Declaration

cs-api-definition
public event PropertyGridItemEditorInitializedEventHandler EditorInitialized

Event Value

PropertyGridItemEditorInitializedEventHandler

EditorRequired

Occurs when editor is required.

Declaration

cs-api-definition
public event PropertyGridEditorRequiredEventHandler EditorRequired

Event Value

PropertyGridEditorRequiredEventHandler

ItemExpandedChanged

Occurs after the value of the Expanded property of a property grid item is changed.

Declaration

cs-api-definition
public event RadPropertyGridEventHandler ItemExpandedChanged

Event Value

RadPropertyGridEventHandler

ItemExpandedChanging

Occurs before the value of the Expanded property of a property grid item is changed.

Declaration

cs-api-definition
public event RadPropertyGridCancelEventHandler ItemExpandedChanging

Event Value

RadPropertyGridCancelEventHandler

ItemFormatting

Occurs when the item changes its state and needs to be formatted.

Declaration

cs-api-definition
public event PropertyGridItemFormattingEventHandler ItemFormatting

Event Value

PropertyGridItemFormattingEventHandler

ItemMouseClick

Occurs when a mouse button is clicked inside a PropertyGridItemElementBase

Declaration

cs-api-definition
public event RadPropertyGridEventHandler ItemMouseClick

Event Value

RadPropertyGridEventHandler

ItemMouseDoubleClick

Occurs when a mouse button is double clicked inside a PropertyGridItemElementBase

Declaration

cs-api-definition
public event RadPropertyGridEventHandler ItemMouseDoubleClick

Event Value

RadPropertyGridEventHandler

ItemMouseDown

Occurs when the user presses a mouse button over a property grid item.

Declaration

cs-api-definition
public event PropertyGridMouseEventHandler ItemMouseDown

Event Value

PropertyGridMouseEventHandler

ItemMouseMove

Occurs when the user moves the mouse in the area of a property grid item.

Declaration

cs-api-definition
public event PropertyGridMouseEventHandler ItemMouseMove

Event Value

PropertyGridMouseEventHandler

PropertyValidated

Fires when a property has finished validating.

Declaration

cs-api-definition
public event PropertyValidatedEventHandler PropertyValidated

Event Value

PropertyValidatedEventHandler

PropertyValidating

Fires when a property value is validating.

Declaration

cs-api-definition
public event PropertyValidatingEventHandler PropertyValidating

Event Value

PropertyValidatingEventHandler

PropertyValueChanged

Occurs when a property value changes.

Declaration

cs-api-definition
public event PropertyGridItemValueChangedEventHandler PropertyValueChanged

Event Value

PropertyGridItemValueChangedEventHandler

PropertyValueChanging

Occurs when item's value is changing.

Declaration

cs-api-definition
public event PropertyGridItemValueChangingEventHandler PropertyValueChanging

Event Value

PropertyGridItemValueChangingEventHandler

SelectedGridItemChanged

Occurs after the property item is selected. For more information about handling events, see also SelectedItemChanging.

Declaration

cs-api-definition
public event RadPropertyGridEventHandler SelectedGridItemChanged

Event Value

RadPropertyGridEventHandler

SelectedGridItemChanging

Occurs before a property grid item is selected.

Declaration

cs-api-definition
public event RadPropertyGridCancelEventHandler SelectedGridItemChanging

Event Value

RadPropertyGridCancelEventHandler

SelectedObjectChanged

Occurs after the selected object is changed.

Declaration

cs-api-definition
public event PropertyGridSelectedObjectChangedEventHandler SelectedObjectChanged

Event Value

PropertyGridSelectedObjectChangedEventHandler

SelectedObjectChanging

Occurs before the selected object is changed.

Declaration

cs-api-definition
public event PropertyGridSelectedObjectChangingEventHandler SelectedObjectChanging

Event Value

PropertyGridSelectedObjectChangingEventHandler

ValueChanged

Fires when the value of an editor changes.

Declaration

cs-api-definition
[Browsable(true)]
public event EventHandler ValueChanged

Event Value

EventHandler

ValueChanging

Fires before the value in an editor is being changed. The action can be canceled.

Declaration

cs-api-definition
[Browsable(true)]
public event ValueChangingEventHandler ValueChanging

Event Value

ValueChangingEventHandler

In this article
DefinitionConstructorsRadPropertyGrid()PropertiesActiveEditorAllowDefaultContextMenuAutoExpandGroupsBeginEditModeDefaultSizeEnableCustomGroupingEnableFilteringEnableGroupingEnableKineticScrollingEnableSortingFilterDescriptorsFindStringComparerGroupDescriptorsGroupsHelpBarHeightHelpVisibleIsEditingItemHeightItemIndentItemSpacingItemsKeyboardSearchEnabledKeyboardSearchResetIntervalPropertyGridElementPropertySortRadContextMenuReadOnlySelectedGridItemSelectedObjectSelectedObjectsSortDescriptorsSortOrderToolbarVisibleMethodsBeginEdit()BestFit()BestFit(PropertyGridBestFitMode)CancelEdit()CollapseAllGridItems()CreateAccessibilityInstance()CreateChildItems(RadElement)CreatePropertyGridElement()Dispose(bool)EndEdit()ExpandAllGridItems()IsInputKey(Keys)OnKeyDown(KeyEventArgs)OnKeyPress(KeyPressEventArgs)OnLoad(Size)OnMouseClick(MouseEventArgs)OnMouseDoubleClick(MouseEventArgs)OnMouseDown(MouseEventArgs)OnMouseEnter(EventArgs)OnMouseLeave(EventArgs)OnMouseMove(MouseEventArgs)OnMouseUp(MouseEventArgs)OnMouseWheel(MouseEventArgs)OnValidating(CancelEventArgs)ProcessDialogKey(Keys)ResetSelectedProperty()WndProc(ref Message)EventsContextMenuOpeningCreateItemCreateItemElementCustomGroupingEditedEditingEditorInitializedEditorRequiredItemExpandedChangedItemExpandedChangingItemFormattingItemMouseClickItemMouseDoubleClickItemMouseDownItemMouseMovePropertyValidatedPropertyValidatingPropertyValueChangedPropertyValueChangingSelectedGridItemChangedSelectedGridItemChangingSelectedObjectChangedSelectedObjectChangingValueChangedValueChanging
Not finding the help you need?
Contact Support