Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TreeList.CustomDrawRow Event

Enables you to paint rows.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v24.2.dll

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

#Declaration

[DXCategory("CustomDraw")]
public event CustomDrawRowEventHandler CustomDrawRow

#Event Data

The CustomDrawRow event's data class is DevExpress.XtraTreeList.CustomDrawRowEventArgs.

#Remarks

Handle the CustomDrawRow event to paint tree list rows manually. Read the following topic for information and examples on custom draw events: Custom Drawing.

Note

  • Handle the NodeCellStyle event if you need to change the appearance settings like foreground and background color, text formatting and alignment.
  • Do not modify the TreeList’s layout or cell values when handling the CustomDraw events to avoid display issues.
See Also