<?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 : selected rows and checkboxes...</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : selected rows and checkboxes...]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 18 Apr 2026 10:51:45 +0000</pubDate>
  <lastBuildDate>Thu, 20 Nov 2008 16:23:12 +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=12745</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[selected rows and checkboxes... : I have a report control with a...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12745&amp;PID=43049&amp;title=selected-rows-and-checkboxes#43049</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=374">ddlittle</a><br /><strong>Subject:</strong> 12745<br /><strong>Posted:</strong> 20 November 2008 at 4:23pm<br /><br />I have a report control with a checkbox in column zero.&nbsp; When I select several rows and click a checkbox in one of those rows, I want the checkboxes to all turn on (or off).&nbsp; I tried iterating through the selected rows, but it seems that clicking the checkbox changes the selection count to one, because I never iterate more than once.&nbsp; <DIV>&nbsp;</DIV><DIV>Do I need to do something else to find the underlying selection?&nbsp; The selection remains highlighted.</DIV><DIV>&nbsp;</DIV><DIV>Here's a stub of my code, in case you see something there:</DIV><DIV>&nbsp;</DIV><DIV><table width="99%"><tr><td><pre class="BBcode"></DIV><DIV><FONT color=#0000ff size=2><FONT color=#0000ff size=2><P>void</FONT></FONT><FONT size=2> </FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>CDrawingPropertiesWnd</FONT></FONT><FONT size=2>::</FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>OnReportButtonCheck</FONT></FONT><FONT size=2>(</FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>NMHDR</FONT></FONT><FONT size=2>* </FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>pNotifyStruct</FONT></FONT><FONT size=2>, </FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>LRESULT</FONT></FONT><FONT size=2>* </FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>result</FONT></FONT><FONT size=2>)</FONT></P><P><FONT size=2>{</P><P></FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>XTP_NM_REPORTRECORDITEM</FONT></FONT><FONT size=2>* </FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>pItemNotify</FONT></FONT><FONT size=2> = (</FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>XTP_NM_REPORTRECORDITEM</FONT></FONT><FONT size=2>*) </FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>pNotifyStruct</FONT></FONT><FONT size=2>;</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>int</FONT></FONT><FONT size=2> </FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>nColumn</FONT></FONT><FONT size=2> = </FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>pItemNotify</FONT></FONT><FONT size=2>-&gt;</FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>pColumn</FONT></FONT><FONT size=2>-&gt;</FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>GetItemIndex</FONT></FONT><FONT size=2>();</P><P></FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>CXTPReportRecordItemCheckbox</FONT></FONT><FONT size=2>* </FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>cb</FONT></FONT><FONT size=2> = (</FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>CXTPReportRecordItemCheckbox</FONT></FONT><FONT size=2>*)</FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>pItemNotify</FONT></FONT><FONT size=2>-&gt;</FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>pItem</FONT></FONT><FONT size=2>;</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>switch</FONT></FONT><FONT size=2>(</FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>nColumn</FONT></FONT><FONT size=2>)</P><P>{</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>case</FONT></FONT><FONT size=2> </FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>columnShowHide</FONT></FONT><FONT size=2>:</P><P>{</P><P></FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>CXTPReportRecordItemCheckbox</FONT></FONT><FONT size=2>* </FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>cb</FONT></FONT><FONT size=2> = (</FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>CXTPReportRecordItemCheckbox</FONT></FONT><FONT size=2>*)(</FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>pItemNotify</FONT></FONT><FONT size=2>-&gt;</FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>pItem</FONT></FONT><FONT size=2>);</P><P></FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>BOOL</FONT></FONT><FONT size=2> </FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>bVis</FONT></FONT><FONT size=2> = (</FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>cb</FONT></FONT><FONT size=2>-&gt;</FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>IsChecked</FONT></FONT><FONT size=2>() ? </FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>TRUE</FONT></FONT><FONT size=2> : </FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>FALSE</FONT></FONT><FONT size=2>); // value to set for all selected rows...</P><P></FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>CXTPReportSelectedRows</FONT></FONT><FONT size=2>* </FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>rows</FONT></FONT><FONT size=2> = </FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>m_DrawingReport</FONT></FONT><FONT size=2>.</FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>GetSelectedRows</FONT></FONT><FONT size=2>();</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>for</FONT></FONT><FONT size=2>(</FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>int</FONT></FONT><FONT size=2> </FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>xx</FONT></FONT><FONT size=2>=0;</FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>xx</FONT></FONT><FONT size=2>&lt;</FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>rows</FONT></FONT><FONT size=2>-&gt;</FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>GetCount</FONT></FONT><FONT size=2>();</FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>xx</FONT></FONT><FONT size=2>++)</P><P>{</P><P></FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>CXTPReportRow</FONT></FONT><FONT size=2>* </FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>row</FONT></FONT><FONT size=2> = </FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>rows</FONT></FONT><FONT size=2>-&gt;</FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>GetAt</FONT></FONT><FONT size=2>(</FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>xx</FONT></FONT><FONT size=2>);</P><P></FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>int nRow</FONT></FONT><FONT size=2> = </FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>row</FONT></FONT><FONT size=2>-&gt;</FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>GetIndex</FONT></FONT><FONT size=2>();</P><P></FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>CXTPReportRecordItemCheckbox</FONT></FONT><FONT size=2>* </FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>cbShowHide</FONT></FONT><FONT size=2> = (</FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>CXTPReportRecordItemCheckbox</FONT></FONT><FONT size=2>*)</FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>row</FONT></FONT><FONT size=2>-&gt;</FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>GetRecord</FONT></FONT><FONT size=2>()-&gt;</FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>GetItem</FONT></FONT><FONT size=2>(</FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>columnShowHide</FONT></FONT><FONT size=2>);</P><P></FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>cbShowHide</FONT></FONT><FONT size=2>-&gt;</FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>SetChecked</FONT></FONT><FONT size=2>(</FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>bVis</FONT></FONT><FONT size=2>);</P><P></P><P></FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>OnShowHide</FONT></FONT><FONT size=2>(</FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>cbShowHide</FONT></FONT><FONT size=2>,</FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>nColumn</FONT></FONT><FONT size=2>,</FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>nRow</FONT></FONT><FONT size=2>);</P><P>}</P><P>}</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>break</FONT></FONT><FONT size=2>;</P></FONT></DIV><DIV></pre></td></tr></table></DIV>]]>
   </description>
   <pubDate>Thu, 20 Nov 2008 16:23:12 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12745&amp;PID=43049&amp;title=selected-rows-and-checkboxes#43049</guid>
  </item> 
 </channel>
</rss>