[Expand]General Information
[Collapse]WinForms Controls
  .NET Core Support
 [Expand]What's Installed
 [Expand]Build an Application
 [Collapse]Controls and Libraries
  [Expand]Forms and User Controls
  [Expand]Messages, Notifications, and Dialogs
  [Expand]Editors and Simple Controls
  [Expand]Ribbon, Bars and Menu
  [Expand]Application UI Manager
  [Expand]Docking Library
  [Expand]Data Grid
  [Expand]Vertical Grid
  [Expand]Property Grid
  [Expand]Pivot Grid
  [Collapse]Tree List
   [Expand]Product Information
   [Collapse]Feature Center
    [Expand]Data Binding
    [Expand]Data Editing
    [Expand]Data Presentation
    [Collapse]Appearances and Look And Feel
     [Expand]Alpha Blending
     [Collapse]Custom Drawing
       Custom Draw Scenarios
       List of Custom Draw Events
       Manual Invalidation
      Skins and LookAndFeel
    [Expand]Focus, Selection and Navigation
     Formatting Cell Values
   [Expand]Visual Elements
   [Expand]Design-Time Features
   [Expand]End User Capabilities
   [Expand]Member Tables
  [Expand]Gantt Control
  [Expand]Chart Control
  [Expand]Map Control
  [Expand]Rich Text Editor
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]PDF Viewer
  [Expand]TreeMap Control
  [Expand]Sunburst Control
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

Manual Invalidation

Expanded Manual Invalidation

The Tree List automatically repaints its elements after their appearance or display information has been changed. For instance, the footer panel is automatically repainted after its appearance settings have been changed or its summary values have been updated. In some cases, however, you do need to manually invalidate elements. For instance, the summary footer is not repainted when the selection changes. So, you need to invalidate the summary footer manually, if you want to display the number of selected nodes in it.

To force invalidation manually, you will need to call the invalidation methods designed for this purpose. All such methods add the corresponding region to the control's update region that will be repainted during the next paint operation. To force a synchronous paint, you should call the Tree List's Update method after calling an invalidation method. These methods are listed in the table below.

Name Description
TreeList.InvalidateCell Invalidates the specified cell.
TreeList.InvalidateColumnHeader Invalidates the header of the specified column.
TreeList.InvalidateColumnPanel Invalidates the column header panel.
TreeList.InvalidateNode Invalidates the specified node.
TreeList.InvalidateNodes Invalidates all the visible nodes and row footers.
TreeList.InvalidateSummaryFooterPanel Invalidates the summary footer panel.

Is this topic helpful?​​​​​​​