Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - Report Control grouping problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Report Control grouping problem

 Post Reply Post Reply
Author
Message
Mr.Den View Drop Down
Groupie
Groupie
Avatar

Joined: 26 August 2007
Status: Offline
Points: 50
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mr.Den Quote  Post ReplyReply Direct Link To This Post Topic: Report Control grouping problem
    Posted: 15 February 2008 at 2:50pm

Greetings everyone,

I am using the report control from Xtreme SuitePro v11.2.2 (XP SP2, VB6 SP6), and am stumped.

What I am trying to do is obtain the column values for a row that the user left clicks on.

Unless I am missing something, when I have rows grouped, trying to obtain the column values of a row that a user clicks on brings the wrong values.

Using the report sample example that came with the package as a base to work and learn with, I have added the following line of code at the very end of the wndReportControl_MouseDown event:

On Error Resume Next

MsgBox wndReportControl.Records(hitRow.Index).Item(COLUMN_SUBJECT).Value


Click on a row, and the messagebox gives me an off the wall value for subject.


Remove the grouping, and then click on a row, and the messagebox gives me the correct value for the subject.
 
 
Any thoughts on this? Am I not using the best way to obtain column values for specific rows?
 
I also am not able to get the wndReportControl_ColumnClick event to fire, but I have not put a lot of time into that yet.
Back to Top
SuperMario View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 15 February 2008 at 2:58pm
wndReportControl.Rows(hitRow.Index).Record.Item(COLUMN_SUBJECT).Value

column click is for clicking on column headers
Back to Top
Mr.Den View Drop Down
Groupie
Groupie
Avatar

Joined: 26 August 2007
Status: Offline
Points: 50
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mr.Den Quote  Post ReplyReply Direct Link To This Post Posted: 15 February 2008 at 7:30pm
That works great
 
Thank you.
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.047 seconds.