Back to Devexpress

TreeList.InvalidateNodes() Method

windowsforms-devexpress-dot-xtratreelist-dot-treelist-ce8abde8.md

latest3.6 KB
Original Source

TreeList.InvalidateNodes() Method

Invalidates all visible nodes and row footers.

Namespace : DevExpress.XtraTreeList

Assembly : DevExpress.XtraTreeList.v25.2.dll

NuGet Packages : DevExpress.Win.Navigation, DevExpress.Win.TreeList

Declaration

csharp
public virtual void InvalidateNodes()
vb
Public Overridable Sub InvalidateNodes

Remarks

Use the InvalidateNodes method to force repainting of all nodes and row footers currently visible within the TreeList control. Note that nodes include cells, preview sections, node images, expand/collapse buttons and indicator cell buttons. Row footers include indicator cells as well.

Calling the InvalidateNodes method is useful if you want to repaint the mentioned elements at times when not repainted automatically. For instance, navigating through cells doesn’t invoke row footer repainting. Thus, you must invoke row footer repainting manually if you want their look & feel to depend on specific conditions.

Generally, the following must be done in order to use the InvalidateNodes method effectively.

The TreeList.InvalidateNode method enables you to repaint a single node.

See Also

InvalidateNode(TreeListNode)

CustomDrawNodeButton

CustomDrawNodeCell

CustomDrawNodeImages

CustomDrawNodeIndicator

CustomDrawNodePreview

CustomDrawRowFooter

CustomDrawRowFooterCell

TreeList Class

TreeList Members

DevExpress.XtraTreeList Namespace