Print Page | Close Window

Problem on Treeview

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=17153
Printed Date: 02 October 2024 at 11:39am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Problem on Treeview
Posted By: aryasoft2872
Subject: Problem on Treeview
Date 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 - uploads/20100825_042552_Pictures.rar



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net