<?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 : InitialSelectionEnable not working</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : InitialSelectionEnable not working]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 19 Apr 2026 06:54:10 +0000</pubDate>
  <lastBuildDate>Mon, 16 Feb 2009 01:03:27 +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=13417</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[InitialSelectionEnable not working : Good - I check you contribution...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13417&amp;PID=45485&amp;title=initialselectionenable-not-working#45485</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 13417<br /><strong>Posted:</strong> 16 February 2009 at 1:03am<br /><br /><P>Good - I check you contribution and with small modifications use it in our source (Release 13.1). Thanks.</P><DIV></DIV><FONT color=#0000ff size=2><P>void</FONT><FONT size=2> CXTPReportControl::ReSortRows()<BR>{<BR>&nbsp;&nbsp;&nbsp;</FONT><FONT size=2><FONT color=#008000>.......&nbsp; </FONT></P><DIV>&nbsp;&nbsp; BOOL bRowsSelected = m_bInitialSelectionEnable;</DIV><P></FONT><FONT color=#0000ff size=2>&nbsp;&nbsp; if</FONT><FONT size=2> (GetSelectedRows()!= NULL)<BR>&nbsp;&nbsp; {<BR></FONT><FONT color=#0000ff size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if</FONT><FONT size=2> (GetSelectedRows()-&gt;GetCount() &gt; 0)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bRowsSelected = TRUE; <BR>&nbsp;&nbsp; }</P></FONT><DIV><FONT size=2>&nbsp;&nbsp; .......</FONT></DIV><DIV><FONT size=2>}</FONT></DIV>]]>
   </description>
   <pubDate>Mon, 16 Feb 2009 01:03:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13417&amp;PID=45485&amp;title=initialselectionenable-not-working#45485</guid>
  </item> 
  <item>
   <title><![CDATA[InitialSelectionEnable not working : I hacked the report control to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13417&amp;PID=45484&amp;title=initialselectionenable-not-working#45484</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2967">adrien</a><br /><strong>Subject:</strong> 13417<br /><strong>Posted:</strong> 16 February 2009 at 12:05am<br /><br />I hacked the report control to fix it.<br /><br />void CXTPReportControl::ReSortRows()<br />{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (IsVirtualMode())<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Populate();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// are there any selected rows?<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;BOOL bRowsSelected = GetSelectedRows()-&gt;GetCount() != 0;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SortTree(m_pPlainTree);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CXTPReportRecord* pFocusedRecord = GetFocusedRow() ? GetFocusedRow()-&gt;GetRecord() : NULL;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;m_pRows-&gt;Clear();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;m_arrScreenRows.Clear(FALSE);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (int nGroupRow = 0; nGroupRow &lt; m_pPlainTree-&gt;GetCount(); nGroupRow++)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CXTPReportRow* pRow = m_pPlainTree-&gt;GetAt(nGroupRow);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;InsertRow(m_pRows-&gt;GetCount(), pRow);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pRow-&gt;m_nChildIndex = nGroupRow;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ASSERT(pRow-&gt;m_pParentRows == m_pPlainTree);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//-----------------------------------------------------------------------<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;m_nFocusedRow = -1;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// Update indexes on virtual rows<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;int nRowCount = m_pRows-&gt;GetCount();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (int nRowIndex = 0; nRowIndex &lt; nRowCount; nRowIndex++)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CXTPReportRow* pRow = m_pRows-&gt;GetAt(nRowIndex);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (pRow)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pRow-&gt;SetIndex(nRowIndex);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pRow-&gt;m_bVisible = TRUE;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (pFocusedRecord && pRow-&gt;GetRecord() == pFocusedRecord)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;m_nFocusedRow = pRow-&gt;GetIndex();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (IsSelectionEnabled() && bRowsSelected)<br />&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;m_pSelectedRows-&gt;Select(pRow);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AdjustIndentation();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AdjustLayout();<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RedrawControl();<br />}<br /><br />]]>
   </description>
   <pubDate>Mon, 16 Feb 2009 00:05:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13417&amp;PID=45484&amp;title=initialselectionenable-not-working#45484</guid>
  </item> 
  <item>
   <title><![CDATA[InitialSelectionEnable not working : Hi  I am setting InitialSelectionEnable(FALSE)...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13417&amp;PID=45483&amp;title=initialselectionenable-not-working#45483</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2967">adrien</a><br /><strong>Subject:</strong> 13417<br /><strong>Posted:</strong> 15 February 2009 at 11:50pm<br /><br />Hi<br /><br />I am setting InitialSelectionEnable(FALSE) on my report control.<br /><br />however if there is nothing selected, and I click in a column header to sort, it selects a random row all by itself, and doesn't send any notification.<br /><br />Adrien]]>
   </description>
   <pubDate>Sun, 15 Feb 2009 23:50:35 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13417&amp;PID=45483&amp;title=initialselectionenable-not-working#45483</guid>
  </item> 
 </channel>
</rss>