DevExpress TreeList not displaying child nodes and displaying as root nodes instead
问题 I have a TreeList reading from a List(Of LedgerAccountEntry)() . Public Class LedgerAccountEntry Public Property LedgerAccountSys() As Integer Public ParentLedgerAccountSys As Integer ' ' ' ETC End Class In form load: tlLedgerAccounts.ParentFieldName = "ParentLedgerAccountSys" tlLedgerAccounts.KeyFieldName = "LedgerAccountSys" tlLedgerAccounts.RootValue = -1 Later on: While bla entry.LedgerAccountSys = rstAccounts("LedgerAccountSys").Value entry.ParentLedgerAccountSys = IIf(rstAccounts(