Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - Select a specific item in TreeView mode?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Select a specific item in TreeView mode?

 Post Reply Post Reply
Author
Message
RobinG View Drop Down
Groupie
Groupie


Joined: 07 May 2006
Location: United Kingdom
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote RobinG Quote  Post ReplyReply Direct Link To This Post Topic: Select a specific item in TreeView mode?
    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
 
Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
RobinG View Drop Down
Groupie
Groupie


Joined: 07 May 2006
Location: United Kingdom
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote RobinG Quote  Post ReplyReply Direct Link To This Post 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.
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.219 seconds.