<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : VirtualList Mode Problems</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : VirtualList Mode Problems]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 14 May 2026 23:36:34 +0000</pubDate>
  <lastBuildDate>Wed, 22 Sep 2010 09:58:05 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=17256</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[VirtualList Mode Problems : Hello,Thank you for your answer,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17256&amp;PID=60410&amp;title=virtuallist-mode-problems#60410</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6378">MottoDoki</a><br /><strong>Subject:</strong> 17256<br /><strong>Posted:</strong> 22 September 2010 at 9:58am<br /><br />Hello,<div><br></div><div>Thank you for your answer, you right i don't think i will have more than 20 000 row, i'm going to do more test with big fill.</div><div><br></div><div><br></div>]]>
   </description>
   <pubDate>Wed, 22 Sep 2010 09:58:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17256&amp;PID=60410&amp;title=virtuallist-mode-problems#60410</guid>
  </item> 
  <item>
   <title><![CDATA[VirtualList Mode Problems : Hi,  I have to ask you this...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17256&amp;PID=60365&amp;title=virtuallist-mode-problems#60365</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 17256<br /><strong>Posted:</strong> 21 September 2010 at 8:27am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>I have to ask you this first: Do you load LOTS of data? (LOTS= &gt;100000 records)</DIV><DIV>In Virtualmode you have only ONE record and data is filled dynamically (in BeforeDrawRow event)from external data (like array or recordset) BeforeDrawRow event will fire for every single item (cell) and you have to set the data ready&nbsp;to fill it dynamically. &nbsp;&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Do you load LOTS of data? (LOTS= &gt;100000 records)</DIV><UL><LI>No?&nbsp;Do not use Virtualmode for this. If you load just a "few" records&nbsp;(&lt;100000) just add records one at a time and you are (still) able to do lots of tricks with ReportControl.&nbsp;&nbsp;</LI><LI>Yes?&nbsp;You cannot&nbsp;just use a checkbox (like you did),&nbsp;cannot edit cells etc.etc.</LI></UL><DIV>&nbsp;</DIV><DIV>If you think it takes a lot of time to load 100000 records (4 columns)? Takes about 1 second... If you are still interested, please let me know <img src="http://forum.codejock.com/smileys/smiley2.gif" height="17" width="17" border="0" alt="Wink" title="Wink" /></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 21 Sep 2010 08:27:01 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17256&amp;PID=60365&amp;title=virtuallist-mode-problems#60365</guid>
  </item> 
  <item>
   <title><![CDATA[VirtualList Mode Problems :  Hello everyone,  I&amp;#039;m a little...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17256&amp;PID=60230&amp;title=virtuallist-mode-problems#60230</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6378">MottoDoki</a><br /><strong>Subject:</strong> 17256<br /><strong>Posted:</strong> 16 September 2010 at 5:38am<br /><br /><br />Hello everyone,<br /><br />I'm a little newbie in using this control, i have done research inside this forum but doesn't find any answers.<br />I don't find a lot of information about SetVirtualMode option and samples are not very helpfull.<br /><br />So here is my problem :<br />I would like to have a checkbox on one editable column and a format number on a non editable column<br /><br /><br />For the format column i am using sample from this web page<br />http://manpagesfr.free.fr/man/man3/printf.3.html<br /><br />My exemple is really simple using codejock 13.4.0, 1 form with 1 reportcontrol only Here the code :<br /><br />Option Explicit<br /><br />Private Const COLONNE_TEXT = 0<br />Private Const COLONNE_AMOUNT = 1<br />Private Const COLONNE_CHECKBOX = 2<br /><br />Private Declare Function InitCommonControls Lib "Comctl32.dll" () As Long<br /><br />Private Sub Form_Initialize()<br />&nbsp;&nbsp;&nbsp;&nbsp;InitCommonControls<br />End Sub<br /><br />Private Sub Form_Load()<br /><br /><br />&nbsp;&nbsp;&nbsp;&nbsp;RPList.Columns.DeleteAll<br />&nbsp;&nbsp;&nbsp;&nbsp;RPList.Records.DeleteAll<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;RPList.AllowColumnSort = True<br />&nbsp;&nbsp;&nbsp;&nbsp;RPList.AllowEdit = True<br />&nbsp;&nbsp;&nbsp;&nbsp;RPList.EditOnClick = True<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;Dim RPColumn As ReportColumn<br /><br /><br />&nbsp;&nbsp;&nbsp;&nbsp;Set RPColumn = RPList.Columns.Add(COLONNE_TEXT, "COLONNE_TEXT", 100, True)<br />&nbsp;&nbsp;&nbsp;&nbsp;RPColumn.Editable = False<br />&nbsp;&nbsp;&nbsp;&nbsp;Set RPColumn = RPList.Columns.Add(COLONNE_AMOUNT, "COLONNE_AMOUNT", 100, True)<br />&nbsp;&nbsp;&nbsp;&nbsp;RPColumn.Editable = False<br />&nbsp;&nbsp;&nbsp;&nbsp;RPColumn.Alignment = xtpAlignmentRight<br />&nbsp;&nbsp;&nbsp;&nbsp;Set RPColumn = RPList.Columns.Add(COLONNE_CHECKBOX, "COLONNE_CHECKBOX", 100, False)<br />&nbsp;&nbsp;&nbsp;&nbsp;RPColumn.Editable = True<br />&nbsp;&nbsp;&nbsp;&nbsp;RPColumn.Alignment = xtpAlignmentIconCenter<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;InitDataListe<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;RPList.CreateIconViewAndRowNumberColumn<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;RPList.SetCustomDraw xtpCustomBeforeDrawRow<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;RPList.PaintManager.FreezeColsDividerColor = RGB(150, 150, 20)<br />&nbsp;&nbsp;&nbsp;&nbsp;RPList.PaintManager.FreezeColsDividerStyle = RPList.PaintManager.FreezeColsDividerStyle Or xtpReportFreezeColsDividerBold<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;RPList.Redraw<br /><br />End Sub<br /><br />Private Sub InitDataListe()<br /><br />RPList.SetVirtualMode 15000<br />RPList.Populate<br /><br />End Sub<br /><br />Private Sub RPList_BeforeDrawRow(ByVal Row As XtremeReportControl.IReportRow, _<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  ByVal Item As XtremeReportControl.IReportRecordItem, _<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  ByVal Metrics As XtremeReportControl.IReportRecordItemMetrics)<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;Select Case Item.Index<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Case COLONNE_TEXT<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Metrics.Text = "COLONNE_TEXT"<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Case COLONNE_AMOUNT<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Item.Format = "%aq.2f"<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Metrics.Text = "10214.12"<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Case COLONNE_CHECKBOX<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If Not Item.HasCheckbox Then<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  Item.HasCheckbox = True<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  Item.Editable = True<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  Item.TristateCheckbox = False<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  Item.CanEditCheckboxItem = False<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End If<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;End Select<br /><br />End Sub<br /><br />When i click on the checkbox all the column has the checkbox check and my amount is never formatted but it should be like this in output : 10 214.12<br /><br />Can anyone help me to figure what is the problem, there must be something i missed ?<br /><br />Thank You<br /><br /><br /><br />]]>
   </description>
   <pubDate>Thu, 16 Sep 2010 05:38:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17256&amp;PID=60230&amp;title=virtuallist-mode-problems#60230</guid>
  </item> 
 </channel>
</rss>