PropertyGrid
Wisej.Web.PropertyGrid
Last updated
Wisej.Web.PropertyGrid
Last updated
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.5.0.0)
Provides a user interface for browsing the properties of an object.
Initializes a new instance of the PropertyGrid class.
BorderStyle: Indicates the border style for the property grid. (Default: None
)
Attribute[]: Returns or sets the attributes used to filter the properties to display in the PropertyGrid.
Boolean: Returns or sets whether the column that contains row headers is displayed. (Default: False
)
Boolean: Returns or sets whether the value cell automatically enters edit mode when the row is selected. (Default: True
)
Boolean: Returns or sets whether the Help text is visible. (Default: True
)
GridItem: Returns the GridItem at the specified index.
GridItem: Returns the first GridItem with the matching label.
Single: Returns or sets the FillWeight the Name column. 50 (%) is the default. (Default: 50
)
Throws:
ArgumentException A value less than -1 is assigned to the property.
String: Returns or sets the title of the Name column shown when ColumnHeadersVisible is true.
PropertySort: Returns or sets the type of sorting the PropertyGrid uses to display properties. (Default: CategorizedAlphabetical
)
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.
Boolean: Returns or sets whether the grid item under the pointer gets selected on a right click. (Default: False
)
Boolean: Returns or sets whether the column that contains row headers is displayed. (Default: True
)
GridItem: Returns or sets the selected grid item.
Object: Returns or sets the object for which the grid displays properties. (Default: null
)
Object[]: Returns or sets the currently selected objects.
Throws:
ArgumentException One of the items in the array of objects had a null value.
Boolean: Returns or sets whether the control shows the property description text in a tooltip. (Default: False
)
ToolBar: Returns the ToolBar control at the top of the PropertyGrid.
Boolean: Returns or sets whether the toolbar is visible. (Default: False
)
ComponentToolCollection: Returns the instance of ComponentToolCollection associated with this control.
Position: Returns or sets the position of the ComponentTool items associated with this control. (Default: Top
)
String: Returns or sets the title of the Value column shown when ColumnHeadersVisible is true.
Collapses all the categories in the PropertyGrid.
Expands all the categories in the PropertyGrid.
Reloads the updated values from the current SelectedObject or SelectedObjects.
Reloads the updated values from the current SelectedObject or SelectedObjects.
Parameter | Type | Description |
---|---|---|
refreshChildren | True to also refresh all the children of this control. |
Resets the selected property to its default value.
EventHandler Fired when the value o the NameFillWeight property changes.
EventHandler Fired when the sort mode is changed.
PropertyValueChangedEventHandler Fired when a property value changes.
PropertyValueDataErrorEventHandler Fired when a property value is being changed but it is incompatible with the new value.
PropertyValueFormattingEventHandler Fired when the property value is being formatted to be displayed.
EventHandler Fired when the value of the ReadOnly property has changed.
SelectedGridItemBeginEditEventHandler Fired when the selected GridItem is entering edit mode.
SelectedGridItemChangedEventHandler Fired when the selected GridItem is changed.
SelectedGridItemEndEditEventHandler Fired when the selected GridItem exits edit mode.
EventHandler Fired when the objects selected by the SelectedObjects property have changed.
ToolBarButtonClickEventHandler Fired when a ToolBarButton on the ToolBar is clicked.
ToolBarButtonClickEventHandler Fired when a drop-down style ToolBarButton or its down arrow is clicked.
ToolClickEventHandler Fired when a ComponentTool is clicked.
Name | Description |
---|---|
Bindable components implement this interface. | |
Controls that support drag & drop operations implement this interface. | |
Provides access to the ReadOnly property for coontrols that support the read-only mode. | |
All wisej components implement this interface. | |
All wisej controls derived from the Control class must implement this interface. | |
Allows an object to serialize itself. |