Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Collapse]WinForms Controls
  Prerequisites
 [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]Pivot Grid
  [Collapse]Tree List
   [Expand]Product Information
   [Collapse]Feature Center
    [Expand]Data Binding
    [Expand]Nodes
    [Expand]Data Editing
    [Expand]Data Representation
    [Expand]Sorting
    [Expand]Filtering
    [Expand]Summaries
    [Collapse]Appearances and Look And Feel
     [Expand]Alpha Blending
     [Expand]Appearances
     [Collapse]Custom Drawing
       Custom Draw Scenarios
       List of Custom Draw Events
       Manual Invalidation
       Painters
      Skins and LookAndFeel
    [Expand]Focus, Selection and Navigation
     Formatting Cell Values
    [Expand]Miscellaneous
   [Expand]Visual Elements
   [Expand]Design-Time Features
   [Expand]Examples
   [Expand]End User Capabilities
   [Expand]Member Tables
  [Expand]Chart Control
  [Expand]Diagrams
  [Expand]Gauges
  [Expand]Map Control
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]Printing-Exporting
  [Expand]PDF Viewer
   Reporting
  [Expand]Snap
  [Expand]TreeMap 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]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

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.

How would you rate this topic?​​​​​​​