Report Control - Group Rows |
Post Reply |
Author | |
Roken
Newbie Joined: 03 March 2008 Location: United Kingdom Status: Offline Points: 2 |
Post Options
Thanks(0)
Posted: 03 March 2008 at 6:53am |
Hi there, can someone give me the syntax to return the data on a 'Group' row? I have a grid grouped by "Customer Name" - so my first 'Group' row in the grid reads;
"Customer Name:ABC"
ABC being the first customer in the list.
Thanks in advance
|
|
wlcabral
Groupie Joined: 25 April 2007 Location: Brazil Status: Offline Points: 72 |
Post Options
Thanks(0)
|
* example for MS FOXPRO : oSelectd = reportControl.SelectedRows if oSelectd.Count > 0 oParent = oSelectd.Row(0).ParentRow endif |
|
wlcabral
|
|
Roken
Newbie Joined: 03 March 2008 Location: United Kingdom Status: Offline Points: 2 |
Post Options
Thanks(0)
|
Thanks for your reply, unfortunately I need a visual basic 6 example.
In order to populate a report in excel I need the contents of the highlighted rows.
|
|
nighthawk
Senior Member Joined: 11 June 2004 Status: Offline Points: 167 |
Post Options
Thanks(0)
|
You might try something like this:
Dim i As Long Dim GroupRow As XtremeReportControl.ReportGroupRow Dim ReportRow As XtremeReportControl.ReportRow 'loop through report control records i = 0 Do While (i < objReportControl.Rows.Count) If (objReportControl.Rows(i).GroupRow = True) Then 'this is a group row so convert it to ReportGroupRow type Set GroupRow = objReportControl.Rows(i) MsgBox GroupRow.GroupCaption Else 'this is not a group row so treat it as normal ReportRow type Set ReportRow = objReportControl.Rows(i) MsgBox ReportRow.Record.Item(1).Caption End If i = i + 1 Loop I haven't actually tested the above code but it is a simplified version of what I use so it should work. |
|
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 |