<?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] v15.1.3.0908 SetFocusedRow(NULL)</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : [SOLVED] v15.1.3.0908 SetFocusedRow(NULL)]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 19 Apr 2026 11:23:12 +0000</pubDate>
  <lastBuildDate>Wed, 21 Sep 2011 05:18:36 +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=18930</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] v15.1.3.0908 SetFocusedRow(NULL) : I found this too, but it occured...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18930&amp;PID=66378&amp;title=solved-v15-1-3-0908-setfocusedrownull#66378</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2967">adrien</a><br /><strong>Subject:</strong> 18930<br /><strong>Posted:</strong> 21 September 2011 at 5:18am<br /><br />I found this too, but it occured when I removed all records from a report. &nbsp;So it's necessary to be able to call &nbsp;CXTPReportSections::EnsureVisible(CDC *pDC, CXTPReportRow *pRow) with pRow = NULL.<div><br></div><div>e.g. XTPReportSections.cpp line 86</div><div><br></div><div><table width="99%"><tr><td><pre class="BBcode"></div><div><br></div><div><div>BOOL CXTPReportSections::EnsureVisible(CDC *pDC, CXTPReportRow *pRow)</div><div>{</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>BOOL bResult = FALSE;</div><div><span ="Apple-tab-span" style="white-space:pre">	</span></div><div><span ="Apple-tab-span" style="white-space:pre">	</span>if(!pRow)</div><div><span ="Apple-tab-span" style="white-space:pre">		</span>return bResult;</div><div><br></div></div><div></pre></td></tr></table></div><div><br></div><div>solves the problem for me</div><div><br></div>]]>
   </description>
   <pubDate>Wed, 21 Sep 2011 05:18:36 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18930&amp;PID=66378&amp;title=solved-v15-1-3-0908-setfocusedrownull#66378</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] v15.1.3.0908 SetFocusedRow(NULL) : Thanks, fixed.   ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18930&amp;PID=66238&amp;title=solved-v15-1-3-0908-setfocusedrownull#66238</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1755">ABuenger</a><br /><strong>Subject:</strong> 18930<br /><strong>Posted:</strong> 09 September 2011 at 11:20am<br /><br />Thanks, fixed.<br><br>]]>
   </description>
   <pubDate>Fri, 09 Sep 2011 11:20:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18930&amp;PID=66238&amp;title=solved-v15-1-3-0908-setfocusedrownull#66238</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] v15.1.3.0908 SetFocusedRow(NULL) :  In the newv15.1.3.0908 release...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18930&amp;PID=66235&amp;title=solved-v15-1-3-0908-setfocusedrownull#66235</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=669">markr</a><br /><strong>Subject:</strong> 18930<br /><strong>Posted:</strong> 09 September 2011 at 8:24am<br /><br />In the new&nbsp;v15.1.3.0908 release of the XTP report control, I get an immediate crash if I invoke:<div><br></div><div>GetReportCtrl().SetFocusedRow(NULL);</div><div><br></div><div>Support for using NULL in this context was added to 15.1.1 to allow us to clear the currently focused row. The crash occurs because the method signature above calls EnsureVisbile(), which in turn doesn't always check to see if the row is NULL.</div><div><br></div><div>This problem can be worked around by instead calling:</div><div><br></div><div>GetReportCtrl().SetFocusedRow(FALSE, NULL, FALSE, FALSE);</div><div><br></div><div>... which bypasses the attempt to ensure row visibility (and thus avoids the crash).</div><div><br></div><div>For long term solution, recommend that CodeJock change&nbsp;CXTPReportControl::EnsureVisible(CXTPReportRow *pRow) method so that it *always* checks for NULL row pointer.</div>]]>
   </description>
   <pubDate>Fri, 09 Sep 2011 08:24:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18930&amp;PID=66235&amp;title=solved-v15-1-3-0908-setfocusedrownull#66235</guid>
  </item> 
 </channel>
</rss>