Problem on Treeview |
Post Reply |
Author | |
aryasoft2872
Newbie Joined: 16 August 2010 Status: Offline Points: 2 |
Post Options
Thanks(0)
Posted: 25 August 2010 at 4:27am |
Hi
I have used Treeview Control (v13.4) in my program but i have some problems in making child nodes: Dim intID As Integer intID = 1 For i = 1 To Adodc.Recordset.RecordCount tViwExp.Icons.LoadIcon App.Path & "\Icons\" & Adodc.Recordset.Fields("txtIcon") & ".ico", intID, xtpImageNormal If Adodc.Recordset.Fields("txtERoot") = "-" Then tViwExp.Nodes.Add , , Adodc.Recordset.Fields("txtEName"), Adodc.Recordset.Fields("txtETitle"), intID Else tViwExp.Nodes.Add Adodc.Recordset.Fields("txtERoot"), xtpTreeViewChild, Adodc.Recordset.Fields("txtEName"), Adodc.Recordset.Fields("txtETitle"), intID End If intID = intID + 1 Adodc.Recordset.MoveNext Next tViwExp.Sorted = False (it loads items from Database and my database have not any problem) first pic : my table sec pic : What this code shows to me uploads/20100825_042552_Pictures.rar |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |