Print Page | Close Window

Report Control grouping problem

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=9598
Printed Date: 19 July 2025 at 10:24pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Report Control grouping problem
Posted By: Mr.Den
Subject: Report Control grouping problem
Date 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.

http://www.mrden.com/Pix/RC1.jpg - http://www.mrden.com/Pix/RC1.jpg

Remove the grouping, and then click on a row, and the messagebox gives me the correct value for the subject.
 
http://www.mrden.com/Pix/RC2.jpg - http://www.mrden.com/Pix/RC2.jpg
 
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.



Replies:
Posted By: SuperMario
Date Posted: 15 February 2008 at 2:58pm
wndReportControl.Rows(hitRow.Index).Record.Item(COLUMN_SUBJECT).Value

column click is for clicking on column headers


Posted By: Mr.Den
Date Posted: 15 February 2008 at 7:30pm
That works great
 
Thank you.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net