<?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 : how select rows by drag mouse?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : how select rows by drag mouse?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 15 May 2026 13:09:55 +0000</pubDate>
  <lastBuildDate>Fri, 24 Oct 2008 17:10:02 +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=12357</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[how select rows by drag mouse? : You can&amp;#039;t do this automatically...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12357&amp;PID=42340&amp;title=how-select-rows-by-drag-mouse#42340</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 12357<br /><strong>Posted:</strong> 24 October 2008 at 5:10pm<br /><br />You can't do this automatically with a property or method of the ReportControl, but you can code it yourself. Something like this:<br><br><table width="99%"><tr><td><pre class="BBcode"><br>Private Sub wndReportControl_MouseDown(Button As Integer, Shift As Integer, x As Long, y As Long)<br>&nbsp;&nbsp; Dim lo_Row &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; As ReportRow<br><br>&nbsp;&nbsp; Set lo_Row = wndReportControl.HitTest(x, y).Row<br>&nbsp;&nbsp; If Not lo_Row Is Nothing Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If Not lo_Row.GroupRow Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_FirstSelection = lo_Row.Index<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<br>&nbsp;&nbsp; End If<br>End Sub<br><br>Private Sub wndReportControl_MouseMove(Button As Integer, Shift As Integer, x As Long, y As Long)<br>&nbsp;&nbsp; Dim lo_Hit&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; As ReportHitTestInfo<br>&nbsp;&nbsp; Dim i&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; As Long<br>&nbsp;&nbsp; Dim l_Step&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; As Long<br><br>&nbsp;&nbsp; If Button = vbLeftButton Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If m_FirstSelection &gt;= 0 Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Me.wndReportControl.SelectedRows.DeleteAll<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set lo_Hit = Me.wndReportControl.HitTest(x, y)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If Not lo_Hit Is Nothing Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If Not lo_Hit.Row Is Nothing Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If lo_Hit.Row.Index &lt; m_FirstSelection Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; l_Step = -1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Else<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; l_Step = 1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; For i = m_FirstSelection To lo_Hit.Row.Index Step l_Step<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If Not Me.wndReportControl.Rows(i).GroupRow Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Me.wndReportControl.Rows(i).Selected = True<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Next i<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<br>&nbsp;&nbsp; End If<br>End Sub<br><br>Private Sub wndReportControl_MouseUp(Button As Integer, Shift As Integer, x As Long, y As Long)<br>&nbsp;&nbsp; m_FirstSelection = -1<br>End Sub<br><br>Private Sub Form_Load()<br>&nbsp;&nbsp;&nbsp; m_FirstSelection = -1<br>End Sub<br></pre></td></tr></table><br>]]>
   </description>
   <pubDate>Fri, 24 Oct 2008 17:10:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12357&amp;PID=42340&amp;title=how-select-rows-by-drag-mouse#42340</guid>
  </item> 
  <item>
   <title><![CDATA[how select rows by drag mouse? : Hi,  You can&amp;#039;t. Fastest...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12357&amp;PID=42297&amp;title=how-select-rows-by-drag-mouse#42297</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 12357<br /><strong>Posted:</strong> 24 October 2008 at 3:57am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>You can't. Fastest way to select multiple rows is setting property MultipleSelectiom = true and with CTRL / SHIFT key + mouse,&nbsp; arrow keys, pagedown etc. etc. (just as ordinary listview items)</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 24 Oct 2008 03:57:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12357&amp;PID=42297&amp;title=how-select-rows-by-drag-mouse#42297</guid>
  </item> 
  <item>
   <title><![CDATA[how select rows by drag mouse? : hi allhelp me about how select...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12357&amp;PID=41714&amp;title=how-select-rows-by-drag-mouse#41714</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4045">mozaheb</a><br /><strong>Subject:</strong> 12357<br /><strong>Posted:</strong> 07 October 2008 at 6:15am<br /><br />hi all<br><br>help me about how select rows by drag mouse?<br><br>thank you<br><br>]]>
   </description>
   <pubDate>Tue, 07 Oct 2008 06:15:54 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12357&amp;PID=41714&amp;title=how-select-rows-by-drag-mouse#41714</guid>
  </item> 
 </channel>
</rss>