![]() |
Get the handle of the above row |
Post Reply ![]() |
Author | |
mellysully ![]() Groupie ![]() Joined: 09 June 2009 Status: Offline Points: 19 |
![]() ![]() ![]() ![]() ![]() 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.
|
|
![]() |
|
Aaron ![]() Senior Member ![]() Joined: 29 January 2008 Status: Offline Points: 2192 |
![]() ![]() ![]() ![]() ![]() |
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
![]() |
|
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.... |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |