Skip to main content
Version: 3.5

PropertyGrid

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Provides a user interface for browsing the properties of an object.

public class PropertyGrid : Control, IEnumerable<GridItem>, IEnumerable, IReadOnly

Constructors

Instance memberPropertyGrid()

Initializes a new instance of the PropertyGrid class.

Properties

Instance memberBorderStyle

BorderStyle: Indicates the border style for the property grid. (Default: None)

Instance memberBrowsableAttributes

Attribute[]: Returns or sets the attributes used to filter the properties to display in the PropertyGrid.

Instance memberColumnHeadersVisible

Boolean: Returns or sets whether the column that contains row headers is displayed. (Default: False)

Instance memberEditOnEnter

Boolean: Returns or sets whether the value cell automatically enters edit mode when the row is selected. (Default: True)

Instance memberHelpVisible

Boolean: Returns or sets whether the Help text is visible. (Default: True)

Instance memberItem(index)

GridItem: Returns the GridItem at the specified index.

Instance memberItem(label)

GridItem: Returns the first GridItem with the matching label.

Instance memberNameFillWeight

Single: Returns or sets the FillWeight the Name column. 50 (%) is the default. (Default: 50)

Throws:

Instance memberNameTitle

String: Returns or sets the title of the Name column shown when ColumnHeadersVisible is true.

Instance memberPropertySort

PropertySort: Returns or sets the type of sorting the PropertyGrid uses to display properties. (Default: CategorizedAlphabetical)

Instance memberReadOnly

Boolean: Returns or sets whether the user can edit the values of the SelectedObject. (Default: False)

Throws:

  • InvalidOperationException The specified value when setting this property is true, the current cell is in edit mode, and the current cell contains changes that cannot be committed.
  • Exception The specified value when setting this property would cause the control to enter edit mode, but initialization of the editing cell value failed and either there is no handler for the DataError event or the handler has set the ThrowException property to true. The exception object can typically be cast to type FormatException.

Instance memberRightClickSelection

Boolean: Returns or sets whether the grid item under the pointer gets selected on a right click. (Default: False)

Instance memberRowHeadersVisible

Boolean: Returns or sets whether the column that contains row headers is displayed. (Default: True)

Instance memberSelectedGridItem

GridItem: Returns or sets the selected grid item.

Instance memberSelectedObject

Object: Returns or sets the object for which the grid displays properties. (Default: null)

Instance memberSelectedObjects

Object[]: Returns or sets the currently selected objects.

Throws:

Instance memberShowHelpToolTips

Boolean: Returns or sets whether the control shows the property description text in a tooltip. (Default: False)

Instance memberToolBar

ToolBar: Returns the ToolBar control at the top of the PropertyGrid.

Instance memberToolbarVisible

Boolean: Returns or sets whether the toolbar is visible. (Default: False)

Instance memberTools

ComponentToolCollection: Returns the instance of ComponentToolCollection associated with this control.

Instance memberToolsPosition

Position: Returns or sets the position of the ComponentTool items associated with this control. (Default: Top)

Instance memberValueTitle

String: Returns or sets the title of the Value column shown when ColumnHeadersVisible is true.

Methods

Instance memberCollapseAllGridItems()

Collapses all the categories in the PropertyGrid.

Instance memberExpandAllGridItems()

Expands all the categories in the PropertyGrid.

Instance memberRefresh()

Reloads the updated values from the current SelectedObject or SelectedObjects.

Instance memberRefresh(refreshChildren)

Reloads the updated values from the current SelectedObject or SelectedObjects.

ParameterTypeDescription
refreshChildrenBooleanTrue to also refresh all the children of this control.

Instance memberResetSelectedProperty()

Resets the selected property to its default value.

Events

Instance memberNameFillWeightChanged

EventHandler Fired when the value o the NameFillWeight property changes.

Instance memberPropertySortChanged

EventHandler Fired when the sort mode is changed.

Instance memberPropertyValueChanged

PropertyValueChangedEventHandler Fired when a property value changes.

Instance memberPropertyValueDataError

PropertyValueDataErrorEventHandler Fired when a property value is being changed but it is incompatible with the new value.

Instance memberPropertyValueFormatting

PropertyValueFormattingEventHandler Fired when the property value is being formatted to be displayed.

Instance memberReadOnlyChanged

EventHandler Fired when the value of the ReadOnly property has changed.

Instance memberSelectedGridItemBeginEdit

SelectedGridItemBeginEditEventHandler Fired when the selected GridItem is entering edit mode.

Instance memberSelectedGridItemChanged

SelectedGridItemChangedEventHandler Fired when the selected GridItem is changed.

Instance memberSelectedGridItemEndEdit

SelectedGridItemEndEditEventHandler Fired when the selected GridItem exits edit mode.

Instance memberSelectedObjectsChanged

EventHandler Fired when the objects selected by the SelectedObjects property have changed.

Instance memberToolbarButtonClick

ToolBarButtonClickEventHandler Fired when a ToolBarButton on the ToolBar is clicked.

Instance memberToolbarButtonDropDown

ToolBarButtonClickEventHandler Fired when a drop-down style ToolBarButton or its down arrow is clicked.

Instance memberToolClick

ToolClickEventHandler Fired when a ComponentTool is clicked.

Implements

NameDescription
IBindableComponentBindable components implement this interface.
IDropTargetControls that support drag & drop operations implement this interface.
IReadOnlyProvides access to the ReadOnly property for coontrols that support the read-only mode.
IWisejComponentAll wisej components implement this interface.
IWisejControlAll wisej controls derived from the Control class must implement this interface.
IWisejSerializableAllows an object to serialize itself.