Print Page | Close Window

Adding Rows

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=17065
Printed Date: 15 November 2024 at 1:37pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Adding Rows
Posted By: markmark
Subject: Adding Rows
Date Posted: 04 August 2010 at 10:14am
Hi
 
For a long time I create my columns with  ReportControl1.Columns.Add 0, "Col1"
 
Then I have to create a row with Set Record = wndReportControl.Records.Add
 
Then I have to create each column item within that row with Record.AddItem
 
Should, or is there away to have the created Record  by default have its ReportRecordItem created when the record is added.
 
Thanks
 
Mark


-------------
Product: Xtreme SuitePro (ActiveX) version 13.0.0
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0



Replies:
Posted By: dailyblog
Date Posted: 05 August 2010 at 12:25am
i except there would be a easier way adding a row.
As you said,after a row is added with Records.Add, each item of the row should be added automaticly.
In addition,how can I  get the value of a focused cell?The codes seems a bit more.Why can not we use ReportControl.Cell(row.index,col.index) ?


Posted By: Aaron
Date Posted: 06 August 2010 at 12:50pm
Hi, Mark
 
I would expect to add records with a predefined record (including the ReportItems) but it seems it can't be done. I tried with .CreateRecord and ReportRecord but it doesn't add the record (tried with Me.wndReportControl.AddRecordEx pRecord ) to Records collection.
Question for support: should it be possible?
 
 
@dailyblog: You can get value of a ReportItem:
 
Me.wndReportControl.FocusSubItems = True 'Enable focus for ReportItems
Me.wndReportControl.FocusedRow.Record.Item(Me.wndReportControl.FocusedColumn.ItemIndex).Value
 


 
 
 
 
 


-------------
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....



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