<?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] Wrong row selected when clicked</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : [solved] Wrong row selected when clicked]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 02 May 2026 00:28:08 +0000</pubDate>
  <lastBuildDate>Mon, 20 Apr 2015 12:31: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=22384</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] Wrong row selected when clicked : We have informed our development...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22384&amp;PID=73265&amp;title=solved-wrong-row-selected-when-clicked#73265</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8848">mcmastl</a><br /><strong>Subject:</strong> 22384<br /><strong>Posted:</strong> 20 April 2015 at 12:31pm<br /><br />We have informed our development team of the issue and will be looking into it. &nbsp;Thank you for bringing this to our attention. &nbsp;If the issue has been resolved please let us know. &nbsp;]]>
   </description>
   <pubDate>Mon, 20 Apr 2015 12:31:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22384&amp;PID=73265&amp;title=solved-wrong-row-selected-when-clicked#73265</guid>
  </item> 
  <item>
   <title><![CDATA[[solved] Wrong row selected when clicked : Hi, I&amp;#039;m having a problem...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22384&amp;PID=72716&amp;title=solved-wrong-row-selected-when-clicked#72716</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4827">DaveH</a><br /><strong>Subject:</strong> 22384<br /><strong>Posted:</strong> 08 August 2014 at 5:24pm<br /><br />Hi, I'm having a problem with the Report control (version 16.3.1) where if there are more rows than can be displayed in the control (vertical scrolling is needed), and only part of the bottom row is visible (the control is not an integral multiple of the row height; e.g., it can display 5 full rows and half of the 6th), if I click on that partially-visible row, the Report control will scroll up so that the row is fully visible, but will then select the row that is now where I clicked. I.e., it will select the row after the one I clicked on.<br><br>Here's some code that demonstrates the problem... in VB6, put a Report control named ReportControl1 on the form, then paste this as the form code:<br><br><table width="99%"><tr><td><pre class="BBcode">Option Explicit<br><br>Private Sub Form_Load()<br>&nbsp; Dim i As Integer<br>&nbsp; <br>&nbsp; With ReportControl1<br>&nbsp;&nbsp;&nbsp; .ScrollMode = xtpReportScrollModeBlockSize<br>&nbsp;&nbsp;&nbsp; '.ScrollMode = xtpReportScrollModeSmooth ' Works OK with this ScrollMode<br>&nbsp;&nbsp;&nbsp; For i = 1 To 20<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .AddRecord.AddItem "Row " &amp; i<br>&nbsp;&nbsp;&nbsp; Next i<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; .Columns.Add 0, "Number", 100, True<br>&nbsp;&nbsp;&nbsp; .Populate<br>&nbsp; End With<br>End Sub<br><br>Private Sub Form_Resize()<br>&nbsp; Dim left As Long, top As Long, right As Long, bot As Long<br>&nbsp;&nbsp;&nbsp; <br>&nbsp; With ReportControl1<br>&nbsp;&nbsp;&nbsp; .Redraw<br>&nbsp;&nbsp;&nbsp; .Rows.Row(0).GetRect left, top, right, bot<br>&nbsp;&nbsp;&nbsp; .Height = (5.6 * (bot - top) + .PaintManager.HeaderHeight) * Screen.TwipsPerPixelY<br>&nbsp; End With<br>End Sub<br></pre></td></tr></table><br><br>This should populate the Report control with 20 rows ("Row 1" through "Row 20"), and size it so that 5 rows are fully visible, and Row 6 is partially visible. If you then click on Row 6, it scrolls up one row and selects Row 7. A workaround is to set .ScrollMode = xtpReportScrollModeSmooth, so when it scrolls, the spot where you click is still Row 6. However, it should work regardless of the ScrollMode: the row selected should be the one where the mouse down event occurs, not where the mouse up event occurs.<br>]]>
   </description>
   <pubDate>Fri, 08 Aug 2014 17:24:54 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22384&amp;PID=72716&amp;title=solved-wrong-row-selected-when-clicked#72716</guid>
  </item> 
 </channel>
</rss>