Print Page | Close Window

Select a specific item in TreeView mode?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=4460
Printed Date: 16 July 2025 at 3:07pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Select a specific item in TreeView mode?
Posted By: RobinG
Subject: Select a specific item in TreeView mode?
Date Posted: 22 June 2006 at 4:56am

Hi,

 
After populating the report control so that it looks like a tree view, it is possible to programaticailly select an item?
 
I have tried a few things with no luck - maybe somebody here knows the secret?
 
I'm still using 9.81 version, so if you look at the Report Control Sample / Tree View Sample Dialog which it ships with, how could I:
 
1) Make the 7th item from the top selected? (expand all the node, it reads Re: , Brue Wayne, 17/06/2004, 23, $8.76)
2) Automatically expand the treeview so the item is visible?
 
Would the current version of the control make my life easier?
 
Regards,
Robin
 



Replies:
Posted By: sserge
Date Posted: 25 June 2006 at 5:00pm
Hi Robin,

That would be quite straighforward, and it could also work with 9.81:

' expand all rows
Dim pRow As ReportRow
For Each pRow In wndReportControl.Rows
    pRow.Expanded = True
Next
' select 7th row
wndReportControl.Rows(6).Selected = True


--
WBR,
Serge


Posted By: RobinG
Date Posted: 27 June 2006 at 3:32pm
Serge,
 
Thanks for the response - I figured it must be possible but all my attempts had failed so far. I will try again.
 
Regards,
Robin.



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