CustomDrawColumnHeaderEventArgs.ColumnType Property

Gets a value indicating the type of element to be painted.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v20.2.dll


public HitInfoType ColumnType { get; }
Public ReadOnly Property ColumnType As HitInfoType

Property Value

Type Description

A HitInfoType enumeration value indicating the type of element to be painted.


The TreeList.CustomDrawColumnHeader event gives you the ability to paint the column header panel using custom draw. You can identify which element is currently painted via the ColumnType property of the event parameter. This property returns the HitInfoType.ColumnButton value when column button painting is performed. If a column header is being painted, it returns the HitInfoType.Column value. The HitInfoType.BehindColumn return value corresponds to the space not occupied by column headers.

You can modify the CustomDrawEventArgs.Handled property of the event parameter with respect to the ColumnType property value. This allows you to perform custom painting of the column button or column headers only.

See Also