Back to Devexpress

TreeList Events

windowsforms-devexpress-dot-xtratreelist-dot-treelist-dot-underscore-events.md

latest55.1 KB
Original Source

TreeList Events

Displays data as a multi-column tree view. Can be used in either bound or unbound mode. See Tree List for more information.

NameDescription
AfterCheckNodeOccurs after a node’s check state has been changed by an end-user.
AfterCollapseFires immediately after a node has been collapsed.
AfterDragNodeFires immediately after a drag-and-drop operation on a node has been successfully completed.
AfterDropNodeFires after a node is dropped.
AfterExpandFires immediately after a node has been expanded.
AfterFocusNodeFires in response to focus being moved between nodes.
AutoSizeChangedThis event is not relevant for this class. Inherited from Control.
BackColorChangedOccurs when the value of the BackColor property changes. Inherited from Control.
BackgroundImageChangedOccurs when the value of the BackgroundImage property changes. Inherited from Control.
BackgroundImageLayoutChangedOccurs when the BackgroundImageLayout property changes. Inherited from Control.
BandPositionChangedFires after a band changes its position or visibility.
BandWidthChangedOccurs when the band’s width is changed.
BeforeCheckNodeOccurs before a node’s check state is changed.
BeforeCollapseFires before a node is collapsed.
BeforeDragNodeFires when an attempt to drag a node is performed.
BeforeDropNodeFires when a node is about to be dropped, and allows you to cancel the operation.
BeforeExpandFires before a node is expanded. Allows you to implement dynamic node loading in unbound mode.
BeforeFocusNodeFires before a node is focused.
BeforeLoadLayoutOccurs before a layout is restored from storage (a stream, xml file or the system registry).
BindingContextChangedOccurs when the value of the BindingContext property changes. Inherited from Control.
CalcNodeDragImageIndexEnables you to specify a custom image to be displayed in front of nodes during node drag-and-drop.
CalcNodeHeightAllows you to assign custom node height.
CausesValidationChangedOccurs when the value of the CausesValidation property changes. Inherited from Control.
CellValueChangedFires immediately after a user closes a cell editor with a modified value.
CellValueChangingFires when an end-user starts to edit a cell value.
ChangeUICuesOccurs when the focus or keyboard user interface (UI) cues change. Inherited from Control.
ClickOccurs when the control is clicked. Inherited from Control.
ClientSizeChangedOccurs when the value of the ClientSize property changes. Inherited from Control.
ClipboardNodeCopyingFires before a data row, a group row, column headers, or band headers are copied to the clipboard. Allows you to apply a format, change copied data, or skip a data row or header.
ClipboardNodePastingFires before a node is pasted to the control. Allows you to apply a format, update the pasted data, or skip a data row.
ColumnButtonClickFires when the column button is clicked.
ColumnChangedFires immediately after the column collection or an individual column has been modified.
ColumnFilterChangedOccurs when a column’s filter condition is changed.
ColumnPositionChangedFires when a column is moved, hidden, or shown.
ColumnUnboundExpressionChangedFires after a column’s TreeListColumn.UnboundExpression property has been changed.
ColumnWidthChangedFires after a column’s width has been changed.
CompareNodeValuesEnables you to implement custom sorting for columns whose TreeListColumn.SortMode property is set to Custom. For versions 17.1 and higher, the CompareNodeValues event is deprecated and replaced with the TreeList.CustomColumnSort event.
ContextMenuChangedOccurs when the value of the ContextMenu property changes. Inherited from Control.
ContextMenuStripChangedOccurs when the value of the ContextMenuStrip property changes. Inherited from Control.
ControlAddedOccurs when a new control is added to the Control.ControlCollection. Inherited from Control.
ControlRemovedOccurs when a control is removed from the Control.ControlCollection. Inherited from Control.
CreateCustomNodeProvides the ability to create custom nodes.
CursorChangedOccurs when the value of the Cursor property changes. Inherited from Control.
CustomColumnDisplayTextFires for both bound and unbound Tree List columns and allows you to provide a custom display text for any cell.
CustomColumnSortAllows you to apply custom sorting for those Tree List columns whose TreeListColumn.SortMode is set to Custom.
CustomDrawBandHeaderProvides the capability to custom paint band headers.
CustomDrawColumnHeaderProvides the ability to custom paint column headers and the column button.
CustomDrawEmptyAreaEnables you to custom paint a Tree List’s empty area.
CustomDrawFilterPanelEnables you to custom paint the Filter Panel.
CustomDrawFooterGives you the ability to perform custom painting of the summary footer.
CustomDrawFooterCellGives you the ability to perform custom painting of column footer cells.
CustomDrawNodeButtonGives you the ability to perform custom painting of expand buttons.
CustomDrawNodeCellProvides the ability to perform custom painting of node cells.
CustomDrawNodeCheckBoxEnables you to manually paint node check boxes.
CustomDrawNodeImagesProvides access to a GDI+/DirectX drawing surface and allows you to draw node icons manually.
CustomDrawNodeIndentEnables tree indents to be painted manually.
CustomDrawNodeIndicatorProvides the ability to perform custom painting of indicator cells.
CustomDrawNodePreviewAllows you to custom paint preview sections.
CustomDrawRowEnables you to paint rows.
CustomDrawRowFooterProvides the ability to perform custom painting of row footers.
CustomDrawRowFooterCellProvides the ability to perform custom painting of row footer cells.
CustomDrawScrollAllows you to draw custom scrollbars, or highlight specific positions on the scrollbars.
CustomFilterDisplayTextAllows you to customize the text displayed within the Filter Panel.
CustomizationFormSearchAllows you to filter search results when a user searches in the Advanced Customization Form.
CustomizeNewNodeFromOuterDataAllows you to initialize a new node when a user drops the node from another TreeList control onto the current TreeList control.
CustomizeNodeTemplateAllows you to customize templated nodes.
CustomNodeCellEditEnables editors to be assigned to cells on an individual basis. To avoid performance issues and increased memory consumption, assign repository items that already exist in the TreeList.RepositoryItems collection. Do not create new repository items in this handler.
CustomNodeCellEditForEditingAllows you to assign a custom editor to a column for in-place editing and override the default column editor, which is by default used both in display and edit modes. To avoid performance issues and increased memory consumption, assign repository items that already exist in the TreeList.RepositoryItems collection. Do not create new repository items in this handler.
CustomRowFilterAllows you to specify the node visibility, regardless of the applied filter.
CustomScrollAnnotationAllows you to specify custom annotations.
CustomUnboundColumnDataAllows you to provide data to unbound columns, and save their modified records to an external source.
DataSourceChangedOccurs whenever the TreeList changes its data source.
DefaultPaintHelperChangedFires when a different paint helper is assigned to the TreeList control.
DisposedOccurs when the component is disposed by a call to the Dispose() method. Inherited from Component.
DockChangedOccurs when the value of the Dock property changes. Inherited from Control.
DoubleClickOccurs when the control is double-clicked. Inherited from Control.
DragCancelNodeFires immediately after a drag-and-drop operation over a node has been canceled.
DragDropOccurs when a drag-and-drop operation is completed. Inherited from Control.
DragEnterOccurs when an object is dragged into the control’s bounds. Inherited from Control.
DragLeaveOccurs when an object is dragged out of the control’s bounds. Inherited from Control.
DragObjectDropFires immediately after the drag and drop operation has been completed.
DragObjectOverEnables you to control whether the dragged column header can be dropped at the current position.
DragObjectStartFires when an end-user attempts to drag a column header.
DragOverOccurs when an object is dragged over the control’s bounds. Inherited from Control.
EditFormHiddenFires after the Edit Form is closed.
EditFormPreparedFires when the Edit Form is about to be displayed. Allows you to customize the Edit Form.
EditFormShowingFires when the Edit Form is about to be displayed. Allows you to cancel the action.
EditorKeyDownOccurs when a key is pressed within an in-place editor that belongs to the container control. Inherited from EditorContainer.
EditorKeyPressOccurs when a character key is pressed within an in-place editor that belongs to the container control. Inherited from EditorContainer.
EditorKeyUpOccurs when a pressed key is released within an in-place editor that belongs to the container control. Inherited from EditorContainer.
EnabledChangedOccurs when the Enabled property value has changed. Inherited from Control.
EndSortingFires after a sorting operation has finished.
EnterOccurs when the control is entered. Inherited from Control.
FilterEditorCreatedAllows you to customize the Filter Editor before it is displayed on screen.
FilterExpressionEditorCreatedAllows you to customize the Expression Editor used to edit custom expressions that are displayed in the control’s Filter Editor.
FilterNodeThis event is obsolete. Use the TreeList.CustomRowFilter event instead.
FilterPopupExcelCustomizeTemplateAllows you to customize templates used by Excel-style Filter Dropdowns and external editors generated using Filtering UI Context.
FilterPopupExcelDataAllows you to add, remove, and modify data values and customize predefined filters in the Excel style pop-up filter menus. Filter items added manually on this event must be unique and sorted.
FilterPopupExcelParseFilterCriteriaAllows you to parse the filter criteria applied to data and select the corresponding values in the filter menu.
FilterPopupExcelPrepareTemplateAllows you to replace templates used by Excel-style Filter Dropdowns and external editors generated using Filtering UI Context.
FilterPopupExcelQueryFilterCriteriaFires when a filter criteria is about to be applied to data and allows you to customize the filter criteria.
FocusedColumnChangedFires immediately after focus has been moved from a column.
FocusedNodeChangedFires when focus moves from one node to another.
FontChangedOccurs when the Font property value changes. Inherited from Control.
ForeColorChangedOccurs when the ForeColor property value changes. Inherited from Control.
FormatRuleExpressionEditorCreatedAllows you to customize the Expression Editor embedded in the Edit Formatting Rule dialog.
GetCustomNodeCellEditObsolete. Provides the ability to assign editors to individual cells.
GetCustomNodeCellStyleObsolete. Provides the ability to assign custom style to individual cells.
GetCustomSummaryValueAllows you to specify custom summary values when the control is displayed on-screen.
GetNodeDisplayValueAllows you to display custom values within cells. This event is obsolete. Use the TreeList.CustomColumnDisplayText event instead.
GetPreviewTextEnables you to supply custom text for nodes’ preview sections.
GetPrintCustomSummaryValueAllows you to specify custom summary values when the control is printed.
GetPrintPreviewTextEnables you to display custom text in preview sections when the control is printed.
GetSelectImageAllows you to assign select images to nodes.
GetStateImageAllows you to assign state images to nodes.
GiveFeedbackOccurs during a drag operation. Inherited from Control.
GotFocusOccurs when the control receives focus. Inherited from Control.
HandleCreatedOccurs when a handle is created for the control. Inherited from Control.
HandleDestroyedOccurs when the control’s handle is in the process of being destroyed. Inherited from Control.
HelpRequestedOccurs when the user requests help for a control. Inherited from Control.
HiddenEditorFires immediately after a cell editor has been closed.
HideCustomizationFormFires immediately after the Customization Form has been closed.
HtmlElementMouseClickOccurs when a user clicks an element inside an HTML-CSS template.
HtmlElementMouseDoubleClickOccurs when a user double-clicks any element of an HTML-CSS template.
HtmlElementMouseDownOccurs when a mouse pointer is over an element of an HTML-CSS template, and a mouse button is pressed.
HtmlElementMouseMoveOccurs when a mouse pointer moves while over an element of an HTML-CSS template.
HtmlElementMouseOutOccurs when a mouse pointer leaves the bounds of an element within an HTML-CSS template.
HtmlElementMouseOverOccurs when a mouse pointer enters the bounds of an element within an HTML-CSS template.
HtmlElementMouseUpOccurs when a mouse button pressed over an element of an HTML-CSS template is released.
HtmlSelectedTextChanged
HyperlinkClickFires when a hyperlink in a column or band header is activated.
ImeModeChangedOccurs when the ImeMode property has changed. Inherited from Control.
InitNewRowFires when a new node is about to be created in the New Item Row and allows you to initialize column values.
InvalidatedOccurs when a control’s display requires redrawing. Inherited from Control.
InvalidNodeExceptionFires when a node fails validation or when its data cannot be saved to the data source.
InvalidValueExceptionEnables you to handle exceptions raised as a result of assigning invalid values to cells.
KeyDownOccurs when a key is pressed while the control has focus. Inherited from Control.
KeyPressOccurs when a character. space or backspace key is pressed while the control has focus. Inherited from Control.
KeyUpOccurs when a key is released while the control has focus. Inherited from Control.
LayoutOccurs when a control should reposition its child controls. Inherited from Control.
LayoutUpdatedFires after a Tree List’s layout has been changed.
LayoutUpgradeOccurs after a layout the version of which doesn’t match the current layout version used has been loaded from storage (a stream, xml file or system registry).
LeaveOccurs when the input focus leaves the control. Inherited from Control.
LeftCoordChangedFires when the control’s content is scrolled horizontally.
LoadOccurs when a TreeList control is displayed for the first time.
LocationChangedOccurs when the Location property value has changed. Inherited from Control.
LostFocusOccurs when the control loses focus. Inherited from Control.
MarginChangedOccurs when the control’s margin changes. Inherited from Control.
MeasurePreviewHeightAllows you to specify the height of individual preview sections in pixels.
MouseCaptureChangedOccurs when the control loses mouse capture. Inherited from Control.
MouseClickOccurs when the control is clicked by the mouse. Inherited from Control.
MouseDoubleClickOccurs when the control is double clicked by the mouse. Inherited from Control.
MouseDownOccurs when the mouse pointer is over the control and a mouse button is pressed. Inherited from Control.
MouseEnterOccurs when the mouse pointer enters the control. Inherited from Control.
MouseHoverOccurs when the mouse pointer rests on the control. Inherited from Control.
MouseLeaveOccurs when the mouse pointer leaves the control. Inherited from Control.
MouseMoveOccurs when the mouse pointer is moved over the control. Inherited from Control.
MouseUpOccurs when the mouse pointer is over the control and a mouse button is released. Inherited from Control.
MouseWheelOccurs when the mouse wheel moves while the control has focus. Inherited from Control.
MoveOccurs when the control is moved. Inherited from Control.
NodeCellStyleAllows you to customize the appearance of individual cells.
NodeChangedFires after the node’s property has changed.
NodesReloadedFires when the Tree List control reloads all nodes.
PaddingChangedOccurs when the control’s padding changes. Inherited from Control.
PaintOccurs when the control is redrawn. Inherited from Control.
PaintExA DirectX-compatible event that replaces the standard Control.Paint event.
ParentChangedOccurs when the Parent property value changes. Inherited from Control.
ParseFindPanelTextFires after the query in the find panel changes. Allows you to create a filter condition based on the query and specify how to highlight results in the control.
PopupMenuShowingAllows you to customize default context menus or invoke custom menus.
PreviewKeyDownOccurs before the KeyDown event when a key is pressed while focus is on this control. Inherited from Control.
PrintExportProgressFires repeatedly while the TreeList’s data is being printed/exported.
PropertyDeserializingAllows you to restore certain settings previously saved in the layout.
PropertySerializingAllows you to include certain settings in the layout when you save it.
QueryAccessibilityHelpOccurs when AccessibleObject is providing help to accessibility applications. Inherited from Control.
QueryContinueDragOccurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop operation should be canceled. Inherited from Control.
QueryCustomFunctionsAllows you to add custom-function-based filters (for example, ‘discount is more than 15%’) to Excel-style pop-up filter menus and/or the filter editor.
QueryEmptyTreeTemplateAllows you to assign HTML-CSS templates from the HtmlTemplates collection to an empty TreeList.
QueryNodeTemplateAllows you to assign HTML-CSS templates from the HtmlTemplates collection to nodes.
RegionChangedOccurs when the value of the Region property changes. Inherited from Control.
ResizeOccurs when the control is resized. Inherited from Control.
RightToLeftChangedOccurs when the RightToLeft property value changes. Inherited from Control.
RowCellClickFires when a cell is clicked.
RowClickFires when a row (node) is clicked.
RowSelectImageClickFires when a row’s select image is clicked.
RowStateImageClickFires when a row’s state image is clicked.
ScrollAnnotationsStyleAllows you to customize the scrollbar annotation color and alignment.
SelectImageClickFires when the user clicks a node’s select image. This event is obsolete. Use RowSelectImageClick instead.
SelectionChangedFires when node selection is changed. In v21.1 and higher, the event fires both in single and multiple node selection modes.
SelectionChangingAllows you to specify whether users can select and unselect nodes.
ShowCustomizationFormFires immediately after the Customization Form has been displayed.
ShowFilterPopupCheckedListBoxFires before a pop-up filter menu is displayed. Allows you to customize the value checklist.
ShowFilterPopupDateAllows you to customize a column’s dropdown calendar before it is displayed.
ShowFilterPopupExcelAllows you to hide specific filter conditions from the Filters tab of the Excel-style Drop-down Filter.
ShowFilterPopupListBoxFires before a pop-up filter menu is displayed. Allows you to customize the value list.
ShowingEditorFires before the TreeList is switched to edit mode.
ShownEditorFires immediately after a cell editor has been invoked.
ShowTreeListMenuObsolete. Allows you to customize the default menus for column headers, row and footer summaries, nodes, and the empty area.
SizeChangedOccurs when the Size property value changes. Inherited from Control.
StartSortingFires before a sorting operation is started.
StateChangedFires after the Tree List’s state has changed.
StateImageClickFires when the user clicks a node’s state image. This event is obsolete. Use RowStateImageClick instead.
StyleChangedOccurs when the control style changes. Inherited from Control.
SubstituteFilterAllows you to replace the applied filter with another filter.
SystemColorsChangedOccurs when the system colors change. Inherited from Control.
TabIndexChangedOccurs when the TabIndex property value changes. Inherited from Control.
TabStopChangedOccurs when the TabStop property value changes. Inherited from Control.
TextChangedOccurs when the Text property value changes. Inherited from Control.
TopVisibleNodeIndexChangedFires when the control’s content is scrolled vertically.
TreeListMenuItemClickProvides the ability to perform custom handling of a context menu item click.
UnboundExpressionEditorCreatedFires after an Expression Editor has been created for an unbound column.
ValidatedOccurs when the control is finished validating. Inherited from Control.
ValidateNodeGives you the ability to specify whether a modified node’s data is valid, and if this node can lose focus.
ValidatingOccurs when the control is validating. Inherited from Control.
ValidatingEditorFires when an editor is validated.
VirtualTreeGetCellValueThis event allows you to initialize cells (and optionally the check state) of the processed node, when populating the Tree List control with data dynamically.
VirtualTreeGetChildNodesAllows you to supply root and child nodes, when populating the Tree List control with data dynamically.
VirtualTreeSetCellValueAllows changes that are made to node cells and check state to be stored.
VisibleChangedOccurs when the Visible property value changes. Inherited from Control.

See Also

TreeList Class

TreeList Members

DevExpress.XtraTreeList Namespace