![]() |
Report Control grouping problem |
Post Reply
|
| Author | |
Mr.Den
Groupie
Joined: 26 August 2007 Status: Offline Points: 50 |
Post Options
Thanks(0)
Quote Reply
Topic: Report Control grouping problemPosted: 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
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.
|
|
![]() |
|
SuperMario
Senior Member
Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
Quote Reply
Posted: 15 February 2008 at 2:58pm |
|
wndReportControl.Rows(hitRow.Index).Record.Item(COLUMN_SUBJECT).Value
column click is for clicking on column headers |
|
![]() |
|
Mr.Den
Groupie
Joined: 26 August 2007 Status: Offline Points: 50 |
Post Options
Thanks(0)
Quote Reply
Posted: 15 February 2008 at 7:30pm |
|
That works great
Thank you.
|
|
![]() |
|
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 |