terrydiederich2
1/10/2019 - 3:20 PM

DevExpress TreeList Highlight Selected Node

This sets the background of the selected node on the DevExpress Treelist.

Private Sub tlSetupMenu_CustomDrawNodeCell(sender As Object, e As CustomDrawNodeCellEventArgs) Handles tlSetupMenu.CustomDrawNodeCell
    If tlSetupMenu.FocusedNode IsNot Nothing Then
        If tlSetupMenu.FocusedNode.Equals(e.Node) Then
            e.Appearance.BackColor = Color.Bisque
        End If
    End If
End Sub