Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Controls
  New Posts New Posts RSS Feed - Problem on Treeview
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Problem on Treeview

 Post Reply Post Reply
Author
Message
aryasoft2872 View Drop Down
Newbie
Newbie
Avatar

Joined: 16 August 2010
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote aryasoft2872 Quote  Post ReplyReply Direct Link To This Post Topic: Problem on Treeview
    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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.187 seconds.