<?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 : CXTPReportSelectedRows::SelectBlock Problem</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : CXTPReportSelectedRows::SelectBlock Problem]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 18 Apr 2026 18:34:45 +0000</pubDate>
  <lastBuildDate>Fri, 21 Aug 2009 13:02:10 +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=15021</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[CXTPReportSelectedRows::SelectBlock Problem : Take recent updates - and rebuild...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15021&amp;PID=52296&amp;title=cxtpreportselectedrowsselectblock-problem#52296</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 15021<br /><strong>Posted:</strong> 21 August 2009 at 1:02pm<br /><br /><P>Take recent updates - and rebuild your dll and app -</P><DIV><a href="https://forum.codejock.com/uploads/DemoVersi&#111;n/ReportC&#111;ntrolMFCUpdated.rar" target="_blank">https://forum.codejock.com/uploads/DemoVersion/ReportControlMFCUpdated.rar</A><BR><a href="https://forum.codejock.com/uploads/DemoVersi&#111;n/ReportSampleStaticExt.rar" target="_blank">https://forum.codejock.com/uploads/DemoVersion/ReportSampleStaticExt.rar</A><BR><a href="https://forum.codejock.com/uploads/DemoVersi&#111;n/ReportPaneViewStatic.rar" target="_blank">https://forum.codejock.com/uploads/DemoVersion/ReportPaneViewStatic.rar</A><BR></DIV><DIV>&nbsp;</DIV><DIV>Select All Rows doing by Control+A - see what is reaction in ReportControl.cpp or ReportNavigator.cpp on such shortcut - no hook need!</DIV>]]>
   </description>
   <pubDate>Fri, 21 Aug 2009 13:02:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15021&amp;PID=52296&amp;title=cxtpreportselectedrowsselectblock-problem#52296</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPReportSelectedRows::SelectBlock Problem : Hi,  I am having trouble using...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15021&amp;PID=52292&amp;title=cxtpreportselectedrowsselectblock-problem#52292</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3787">Danlar</a><br /><strong>Subject:</strong> 15021<br /><strong>Posted:</strong> 21 August 2009 at 10:12am<br /><br />Hi,<br /><br />I am having trouble using CXTPReportSelectedRows::SelectBlock. This problem first started to happen after I upgraded from version 12.1.1 to 13.1.0.<br /><br />I will explain with an example:<br /><br />Imagine I have a report control with 15 rows in it, no groups, no rows have child rows, and I have the 4th row from the top selected.<br /><br />I am now calling myReport.GetSelectedRows()-&gt;SelectBlock(0, myReport.GetRows()-&gt;GetCount() - 1, TRUE) to select all rows. The result seems to be that only rows index 3 through 14 are selected (everything at or below my previous selection).<br /><br />At the end of the function call to SelectBlock, the CXTPReportSelectedRows::m_arrSelectedBlocks member contains the following data:<br /><br />i0: nIndexBegin=3, nIndexEnd=4<br />i1: nIndexBegin=0, nIndexEnd=15<br /><br />I'm surprised to see there are more than one selected blocks, given that I passed TRUE for the bCallClear argument. <br /><br /><br />I don't understand. Am I using SelectBlock wrong, or is there a bug?<br /><br />My final goal is to select all rows in the report control via code. I suppose there are other ways I can make that work, but I though I should bring this to your attention. Alternative solutions I've found include explicitly calling Clear before SelectBlock, or sending a message to hook into the new CTRL+A accelerator mentioned in the release notes, or calling _SelectRows, like the accelerator does, but that isn't a public function.<br /><br />-Dan]]>
   </description>
   <pubDate>Fri, 21 Aug 2009 10:12:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15021&amp;PID=52292&amp;title=cxtpreportselectedrowsselectblock-problem#52292</guid>
  </item> 
 </channel>
</rss>