Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - Get the handle of the above row
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Get the handle of the above row

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


Joined: 09 June 2009
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote mellysully Quote  Post ReplyReply Direct Link To This Post Topic: Get the handle of the above row
    Posted: 27 January 2011 at 6:42am
Hi
 
Do you know how to select the row and set it to a handle variable above the one I selected? so that I can update/change the icon depends on its child.
 
Record 1
   Child 1
   Child 2
Record 2
    Child 1
    Child 2
 
I selected the row shown pink highlighted and want to get the handle from child 1 to change the icon.
 
Sample code would be great, thank you.
 
 
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post Posted: 28 January 2011 at 2:39am

Hi,

Something like this:

wndReportControl.Rows(wndReportControl.SelectedRows(0).Index - 1).record.Item(0).Icon = ....

SelectedRows collection contains all selected rows, since you only selected one row, SelectedRows(0) is the row you need. Get the index minus one and you have the row just above the selected row.
 
Maybe you can use BeforeDrawRow event to change icon? With this event you are able to change 'only' visual aspects and leave the records (as you originally added) unchanged.
 
I don't know why you want to change icon, maybe uploading screenshot is best way to show what you need Wink
 
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....
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.102 seconds.