<?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] SelectionChanged don&#039;t fires sometimes!</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : [SOLVED] SelectionChanged don&#039;t fires sometimes!]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 15 May 2026 02:00:59 +0000</pubDate>
  <lastBuildDate>Mon, 14 Mar 2011 22:38:58 +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=18044</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] SelectionChanged don&#039;t fires sometimes! : Hi,I can confirm that this is...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18044&amp;PID=63309&amp;title=solved-selectionchanged-dont-fires-sometimes#63309</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1755">ABuenger</a><br /><strong>Subject:</strong> 18044<br /><strong>Posted:</strong> 14 March 2011 at 10:38pm<br /><br />Hi,<br><br>I can confirm that this is a bug in 15.0.2. I'll fix it for 15.0.3 tomorrow. As a workaround the following code should work:<br><br>Private Sub ReportControl1_KeyDown(KeyCode As Integer, Shift As Integer)<br>&nbsp;&nbsp;&nbsp; If KeyCode = vbKeyA And Shift = 2 Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ReportControl1_SelectionChanged<br>&nbsp;&nbsp;&nbsp; End If<br>End Sub<br><br>Andre<br><br>]]>
   </description>
   <pubDate>Mon, 14 Mar 2011 22:38:58 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18044&amp;PID=63309&amp;title=solved-selectionchanged-dont-fires-sometimes#63309</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] SelectionChanged don&#039;t fires sometimes! : Hi Peter,thanks!I go this way:...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18044&amp;PID=63285&amp;title=solved-selectionchanged-dont-fires-sometimes#63285</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1570">Jebo</a><br /><strong>Subject:</strong> 18044<br /><strong>Posted:</strong> 13 March 2011 at 3:19pm<br /><br />Hi Peter,<br><br>thanks!<br><br>I go this way:<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RecordsSelCount = 0<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; For Each Row In RepCtrl.SelectedRows<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RecordsSelCount = RecordsSelCount + 1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Next<br>msgbox RecordsSelCount<br><br>BUT your and my workaround is really slow!<br>So I hope CJ will fix the SelRow-Counter!<br>]]>
   </description>
   <pubDate>Sun, 13 Mar 2011 15:19:38 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18044&amp;PID=63285&amp;title=solved-selectionchanged-dont-fires-sometimes#63285</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] SelectionChanged don&#039;t fires sometimes! : Doing it manually - second attempt!...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18044&amp;PID=63284&amp;title=solved-selectionchanged-dont-fires-sometimes#63284</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3156">Peter59</a><br /><strong>Subject:</strong> 18044<br /><strong>Posted:</strong> 13 March 2011 at 2:42pm<br /><br />Doing it manually - second attempt! <br><br>Hi Jebo,<br><br>with a little modification, CTRL+A will select all rows even when they are grouped: <br><table width="99%"><tr><td><pre class="BBcode">Private Sub ReportControl1_PreviewKeyDown(KeyCode As Integer, ByVal Shift As Integer, Cancel As Boolean)<br><br>&nbsp;&nbsp;&nbsp; Dim rptRow As XtremeReportControl.ReportRow<br><br>&nbsp;&nbsp;&nbsp; Select Case KeyCode<br>&nbsp;&nbsp;&nbsp; Case vbKeyA<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If Shift And vbCtrlMask Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '-- select rows manually<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; For Each rptRow In ReportControl1.Rows<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If Not rptRow.GroupRow Then rptRow.Selected = True<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Next<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ReportControl1_SelectionChanged<br>&nbsp;&nbsp;&nbsp; End Select<br>End Sub</pre></td></tr></table> <br>See attached sample. <a href="uploads/3156/Selecti&#111;nChanged_problem2.zip" target="_blank">uploads/3156/SelectionChanged_problem2.zip</a><br><br>Peter<br><br><br>]]>
   </description>
   <pubDate>Sun, 13 Mar 2011 14:42:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18044&amp;PID=63284&amp;title=solved-selectionchanged-dont-fires-sometimes#63284</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] SelectionChanged don&#039;t fires sometimes! :    Peter59 wrote:Hi Jebo,This...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18044&amp;PID=63283&amp;title=solved-selectionchanged-dont-fires-sometimes#63283</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1570">Jebo</a><br /><strong>Subject:</strong> 18044<br /><strong>Posted:</strong> 13 March 2011 at 2:13pm<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by Peter59" alt="Originally posted by Peter59" style="vertical-align: text-bottom;" /> <strong>Peter59 wrote:</strong><br /><br />Hi Jebo,<br>This works for me, see attached sample. <a href="uploads/3156/Selecti&#111;nChanged_problem.zip" target="_blank">uploads/3156/SelectionChanged_problem.zip</a><br>Peter<br></td></tr></table><br>Sorry Peter, but this workaround doesn't work if the rows are grouped!<br><br>I hope CJ will fix this bug with v15.0.3.<br><br>]]>
   </description>
   <pubDate>Sun, 13 Mar 2011 14:13:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18044&amp;PID=63283&amp;title=solved-selectionchanged-dont-fires-sometimes#63283</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] SelectionChanged don&#039;t fires sometimes! : Thank you guys! Have opened a...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18044&amp;PID=63279&amp;title=solved-selectionchanged-dont-fires-sometimes#63279</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1570">Jebo</a><br /><strong>Subject:</strong> 18044<br /><strong>Posted:</strong> 13 March 2011 at 5:27am<br /><br />Thank you guys! <img src="http://forum.codejock.com/smileys/smiley31.gif" border="0" alt="Hug" title="Hug" /><br><br>Have opened a ticket and will try your workarounds.<br>]]>
   </description>
   <pubDate>Sun, 13 Mar 2011 05:27:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18044&amp;PID=63279&amp;title=solved-selectionchanged-dont-fires-sometimes#63279</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] SelectionChanged don&#039;t fires sometimes! : Hi,  Fix: Don&amp;#039;t know, guess...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18044&amp;PID=63278&amp;title=solved-selectionchanged-dont-fires-sometimes#63278</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 18044<br /><strong>Posted:</strong> 13 March 2011 at 3:17am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV><strong>Fix</strong>: Don't know, guess you have to submit ticket <img src="http://forum.codejock.com/smileys/smiley2.gif" height="17" width="17" border="0" alt="Wink" title="Wink" /></DIV><DIV>&nbsp;</DIV><DIV><strong>Workaround</strong>: Add a dummy record at the end and <strong>make sure this record is visible at all times.</strong> </DIV><DIV>&nbsp;</DIV><DIV>In your case:</DIV><DIV><strong></strong>&nbsp;</DIV><DIV>Private Sub ReportControl1_ValueChanged(ByVal Row As XtremeReportControl.IReportRow, ByVal Column As XtremeReportControl.IReportColumn, ByVal Item As XtremeReportControl.IReportRecordItem)<BR><FONT color=#666666>If ReportControl1.Navigator.CurrentFocusInHeadersRows Then<BR>&nbsp;&nbsp;&nbsp; Dim Rec As ReportRecord, sTmp As String, c As Long, R As Long<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; sTmp = ReportControl1.HeaderRecords(0).Item(1).Value<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; If sTmp &lt;&gt; "" Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; For R = 0 To ReportControl1.Records.Count - 1<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Rec = ReportControl1.Records(R)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Rec.Visible = InStr(1, Rec.Item(1).Caption, sTmp, vbTextCompare)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Next<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Else&nbsp; ' Make all records visible<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; For R = 0 To ReportControl1.Records.Count - 1<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ReportControl1.Records(R).Visible = True<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Next<BR>&nbsp;&nbsp;&nbsp; End If<BR>End If</FONT></DIV><DIV><strong><U>Me.ReportControl1.Records(Me.ReportControl1.Records.Count - 1).Visible = True</U></strong></DIV><DIV><FONT color=#666666>ReportControl1.Populate: ReportControl1_SelectionChanged<BR></FONT>End Sub</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>The thing is that RC scrolls to last record when selecting all records with CTRL-A but if only AAA is visible last record with&nbsp;FFF isn't visible anymore. That's why you need a 'last' record that is <strong>always</strong> visible.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Sun, 13 Mar 2011 03:17:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18044&amp;PID=63278&amp;title=solved-selectionchanged-dont-fires-sometimes#63278</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] SelectionChanged don&#039;t fires sometimes! : Hi Jebo,I&amp;#039;m not from the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18044&amp;PID=63277&amp;title=solved-selectionchanged-dont-fires-sometimes#63277</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3156">Peter59</a><br /><strong>Subject:</strong> 18044<br /><strong>Posted:</strong> 13 March 2011 at 1:43am<br /><br />Hi Jebo,<br><br>I'm not from the CJ-Team <img src="http://forum.codejock.com/smileys/smiley2.gif" border="0" alt="Wink" title="Wink" /> but I can confirm your observation. <br><br>A possible workaround could be to select all visible rows manually: <br><table width="99%"><tr><td><pre class="BBcode">Private Sub ReportControl1_PreviewKeyDown(KeyCode As Integer, ByVal Shift As Integer, Cancel As Boolean)<br>&nbsp;&nbsp;&nbsp; Select Case KeyCode<br>&nbsp;&nbsp;&nbsp; Case vbKeyA<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If Shift And vbCtrlMask Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '-- select rows manually<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ReportControl1.Navigator.MoveFirstRow<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ReportControl1.Navigator.MoveLastRow True<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<br>&nbsp;&nbsp;&nbsp; End Select<br>End Sub<br></pre></td></tr></table><br>This works for me, see attached sample. <a href="uploads/3156/Selecti&#111;nChanged_problem.zip" target="_blank">uploads/3156/SelectionChanged_problem.zip</a><br><br>Peter<br><br>]]>
   </description>
   <pubDate>Sun, 13 Mar 2011 01:43:58 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18044&amp;PID=63277&amp;title=solved-selectionchanged-dont-fires-sometimes#63277</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] SelectionChanged don&#039;t fires sometimes! :  Hello CJ-Team,the &amp;#034;SelectionChanged&amp;#034;...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18044&amp;PID=63275&amp;title=solved-selectionchanged-dont-fires-sometimes#63275</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1570">Jebo</a><br /><strong>Subject:</strong> 18044<br /><strong>Posted:</strong> 12 March 2011 at 3:32pm<br /><br />Hello CJ-Team,<br><br><img src="file:///I:/Temp/moz-screenshot.png" border="0" />the "SelectionChanged" Event doesn't fires, if some records are invisible! <img src="http://forum.codejock.com/smileys/smiley18.gif" border="0" alt="Ouch" title="Ouch" /><br><br>Please see the attached sample-code for a better understanding.<br><br>&nbsp; &gt;&gt;&gt; <a href="uploads/1570/ReportC&#111;ntrol_SelectAll_Bug.zip" target="_blank">uploads/1570/ReportControl_SelectAll_Bug.zip</a><br><br>Please, is there a workaround or fix available - or do I something wrong?<br><br><br>]]>
   </description>
   <pubDate>Sat, 12 Mar 2011 15:32:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18044&amp;PID=63275&amp;title=solved-selectionchanged-dont-fires-sometimes#63275</guid>
  </item> 
 </channel>
</rss>