Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - SOLVED:Get  FocusedRow Child
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

SOLVED:Get FocusedRow Child

 Post Reply Post Reply
Author
Message
JamGodz View Drop Down
Groupie
Groupie
Avatar

Joined: 25 February 2010
Status: Offline
Points: 67
Post Options Post Options   Thanks (0) Thanks(0)   Quote JamGodz Quote  Post ReplyReply Direct Link To This Post Topic: SOLVED:Get FocusedRow Child
    Posted: 20 September 2010 at 8:10am
Hi Everyone! Good Day!

I've already know how to get the row number of selected row. But my problem is when i add a GroupOrder the index of focusedrow will also count the groupheader... please see attached image..







Private Sub wndList_SelectionChanged()
    mdiMain.StatusBar.Pane(0).Text = "Record: " & wndList.FocusedRow.Index + 1 & " of " & wndList.Records.Count

End Sub


Please can anyone help on this.....
thanks in advance..
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: 21 September 2010 at 4:10am
Hi,
 
If you need actual index of record use:
 
Private Sub wndList_SelectionChanged()
    mdiMain.StatusBar.Pane(0).Text = "Record: " & wndList.FocusedRow.Record.Index + 1 & " of " & wndList.Records.Count

End Sub
 
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
JamGodz View Drop Down
Groupie
Groupie
Avatar

Joined: 25 February 2010
Status: Offline
Points: 67
Post Options Post Options   Thanks (0) Thanks(0)   Quote JamGodz Quote  Post ReplyReply Direct Link To This Post Posted: 21 September 2010 at 8:34am
thank you aaron.. you are the best... btw, how can i tag this topic as resolved?

thanks.
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: 21 September 2010 at 8:51am
Hi,
 
You are the man.  Just few members are doing this but now you're talking Wink
 
OK, you are able to edit post (the one at the top, the one you started with, it is your post and can edit it as much as you can)
 
 
Click Edit Post and post will be opened and just put SOLVED: in front of your description text so SOLVED: Get FocusedRow Child
 
Thanks
 
 
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.156 seconds.