<?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 : SOLVED:Get RowNumber</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : SOLVED:Get RowNumber]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 15 May 2026 02:01:14 +0000</pubDate>
  <lastBuildDate>Tue, 21 Sep 2010 10:11:01 +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=17288</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[SOLVED:Get RowNumber : thank you so much Aaron.. its...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17288&amp;PID=60375&amp;title=solvedget-rownumber#60375</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5940">JamGodz</a><br /><strong>Subject:</strong> 17288<br /><strong>Posted:</strong> 21 September 2010 at 10:11am<br /><br />thank you so much Aaron.. its solved my problem!]]>
   </description>
   <pubDate>Tue, 21 Sep 2010 10:11:01 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17288&amp;PID=60375&amp;title=solvedget-rownumber#60375</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED:Get RowNumber : Hi,  I didn&amp;#039;t know you...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17288&amp;PID=60372&amp;title=solvedget-rownumber#60372</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 17288<br /><strong>Posted:</strong> 21 September 2010 at 9:29am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>I didn't know you use BeforeDrawRow event to load data from recordset. If I look at your code (because I said you are able to retrieve index of row with <FONT color=#0000ff>Row.Record.Index </FONT><FONT color=#000000>but in Virtualmode you have only ONE record) you are using <FONT color=#660033>Row.Record.Index&nbsp;</FONT><FONT color=#000000>and that is wrong. </FONT></FONT><FONT color=#660033>Row.Record.Index&nbsp;</FONT><FONT color=#000000>will always return 0 (in your case 1, because of Row.Record.Index&nbsp;+ 1)&nbsp;</FONT></DIV><DIV>&nbsp;</DIV><DIV>If <FONT color=#ff0000>Not Row.GroupRow</FONT> Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If Row.Record.Index &lt; rs.RecordCount Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rs.AbsolutePosition = Row.<STRIKE>Record.</STRIKE>Index + 1: rs.Move 0</DIV><DIV>&nbsp;</DIV><DIV><strong>Just remove .record and it's OK</strong><BR></DIV><DIV>btw line: <U>If <FONT color=#ff0000>Not Row.GroupRow</FONT> Then</U> is a good thing to do in BeforeDrawRow event <img src="http://forum.codejock.com/smileys/smiley2.gif" height="17" width="17" border="0" alt="Wink" title="Wink" />&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 21 Sep 2010 09:29:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17288&amp;PID=60372&amp;title=solvedget-rownumber#60372</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED:Get RowNumber : btw, how can is tag this topic...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17288&amp;PID=60367&amp;title=solvedget-rownumber#60367</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5940">JamGodz</a><br /><strong>Subject:</strong> 17288<br /><strong>Posted:</strong> 21 September 2010 at 8:34am<br /><br />btw, how can is&nbsp; tag this topic as resolved?<br><br>&nbsp;tnx]]>
   </description>
   <pubDate>Tue, 21 Sep 2010 08:34:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17288&amp;PID=60367&amp;title=solvedget-rownumber#60367</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED:Get RowNumber : Hi Aaron&amp;#039; Thank you so much......]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17288&amp;PID=60366&amp;title=solvedget-rownumber#60366</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5940">JamGodz</a><br /><strong>Subject:</strong> 17288<br /><strong>Posted:</strong> 21 September 2010 at 8:31am<br /><br />Hi Aaron' Thank you so much... ive figured out the problem.... below are my solution... please advice if im mistaken something... i put a condition if Not Row.Group coz i added a grouporder.<br><br>&nbsp;&nbsp;&nbsp; If <font color="#ff0000">Not Row.GroupRow</font> Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If Row.Record.Index &lt; rs.RecordCount Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rs.AbsolutePosition = Row.Record.Index + 1: rs.Move 0<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Row.Record(COLUMN_ICON_STATUS).Tag = rs.Fields!&#091;POSTED&#093;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; With Row.Record(COLUM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bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .ToolTip = "REMARKS:" &amp; vbCrLf &amp; rs.Fields!&#091;REMARKS&#093;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Case Else: .Icon = RECORD_GREEN_ICON<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End Select<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End With<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<br>&nbsp;&nbsp;&nbsp; End If<br><br><br>thank you!<br>]]>
   </description>
   <pubDate>Tue, 21 Sep 2010 08:31:54 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17288&amp;PID=60366&amp;title=solvedget-rownumber#60366</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED:Get RowNumber : Hi,  Are you using ReportControl...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17288&amp;PID=60340&amp;title=solvedget-rownumber#60340</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 17288<br /><strong>Posted:</strong> 21 September 2010 at 4:03am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Are you using ReportControl Virtualmode?</DIV><DIV>&nbsp;</DIV><DIV>As I said&nbsp;in another post, upload small demo and add some info&nbsp;for the things you want to accomplish&nbsp;and I will see what I can do <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>]]>
   </description>
   <pubDate>Tue, 21 Sep 2010 04:03:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17288&amp;PID=60340&amp;title=solvedget-rownumber#60340</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED:Get RowNumber : hi Aaron.. thank for your reply..  i...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17288&amp;PID=60337&amp;title=solvedget-rownumber#60337</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5940">JamGodz</a><br /><strong>Subject:</strong> 17288<br /><strong>Posted:</strong> 21 September 2010 at 3:27am<br /><br />hi Aaron.. thank for your reply..<br><br>i have tried the <font color="#0066ff">Debug.Print</font><font color="#660033"> </font><font color="#660033">Row.Record.Index in </font>BeforeDrawRow event... but ive got <br>error: object variable or with block variable not set.<br><br>thank you.... please i really need help on this..<br>]]>
   </description>
   <pubDate>Tue, 21 Sep 2010 03:27:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17288&amp;PID=60337&amp;title=solvedget-rownumber#60337</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED:Get RowNumber : Hi,  You aren&amp;#039;t able to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17288&amp;PID=60336&amp;title=solvedget-rownumber#60336</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 17288<br /><strong>Posted:</strong> 21 September 2010 at 3:18am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>You aren't able to retrieve the numbers of that column but you are able to&nbsp;get index with <strong>Row.Record.Index</strong> to get rownumber. Actually is same index (CreateRowNumberColumn) as you added records to RC.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 21 Sep 2010 03:18:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17288&amp;PID=60336&amp;title=solvedget-rownumber#60336</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED:Get RowNumber :  Hi!Just wanna know on how to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17288&amp;PID=60333&amp;title=solvedget-rownumber#60333</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5940">JamGodz</a><br /><strong>Subject:</strong> 17288<br /><strong>Posted:</strong> 21 September 2010 at 2:20am<br /><br />Hi!<br><br><br>Just wanna know on how to get the rownumber of the created row number column..<br><br>for example i have declared the <font color="#ff0000">.CreateRowNumberColumn</font> then in BeforeDrawRow i want to get the rownumber value of created row number.<br><br><br>Thank you!<br>]]>
   </description>
   <pubDate>Tue, 21 Sep 2010 02:20:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17288&amp;PID=60333&amp;title=solvedget-rownumber#60333</guid>
  </item> 
 </channel>
</rss>