<?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 : Disable row checkbox</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Disable row checkbox]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 18 Apr 2026 22:10:53 +0000</pubDate>
  <lastBuildDate>Wed, 11 Nov 2009 12:24:16 +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=15563</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[Disable row checkbox : Use ON_NOTIFY(NM_CLICK, XTP_ID_REPORT_CONTROL,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15563&amp;PID=54750&amp;title=disable-row-checkbox#54750</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 15563<br /><strong>Posted:</strong> 11 November 2009 at 12:24pm<br /><br />Use <FONT size=2>ON_NOTIFY(NM_CLICK, XTP_ID_REPORT_CONTROL, OnReportItemClick)</FONT><DIV><FONT color=#0000ff size=2><P>void</FONT><FONT size=2> CVirtualListView::OnReportItemClick(NMHDR * pNotifyStruct, LRESULT * </FONT><FONT color=#008000 size=2>/*result*/</FONT><FONT size=2>)</P></FONT></DIV>]]>
   </description>
   <pubDate>Wed, 11 Nov 2009 12:24:16 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15563&amp;PID=54750&amp;title=disable-row-checkbox#54750</guid>
  </item> 
  <item>
   <title><![CDATA[Disable row checkbox :  Thanks for the idea. After playing...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15563&amp;PID=54749&amp;title=disable-row-checkbox#54749</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=669">markr</a><br /><strong>Subject:</strong> 15563<br /><strong>Posted:</strong> 11 November 2009 at 12:14pm<br /><br />Thanks for the idea. After playing around with this concept a bit, I got very <b>close</b> to what I'm looking for with this:<br><br>if (__condition__)<br>{<br>&nbsp;&nbsp; pDrawArgs-&gt;pItem-&gt;SetEditable(TRUE);<br>}<br>else<br>{<br>&nbsp;&nbsp; pDrawArgs-&gt;pItem-&gt;SetChecked(FALSE);<br>&nbsp;&nbsp; pDrawArgs-&gt;pItem-&gt;SetEditable(FALSE);<br>}<br><br>This gives me precisely the appearance I'm after, but unfortunately the editable checkboxes no longer function correctly after I do this. In fact, my XTP_NM_REPORT_CHECKED event handler doesn't even fire once I put this code into place.<br>]]>
   </description>
   <pubDate>Wed, 11 Nov 2009 12:14:33 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15563&amp;PID=54749&amp;title=disable-row-checkbox#54749</guid>
  </item> 
  <item>
   <title><![CDATA[Disable row checkbox : You can - smth like this: in void...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15563&amp;PID=54702&amp;title=disable-row-checkbox#54702</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 15563<br /><strong>Posted:</strong> 10 November 2009 at 11:34am<br /><br />You can - smth like this: in <FONT color=#0000ff size=2>void</FONT><FONT size=2> CVirtualRecord::GetItemMetrics(XTP_REPORTRECORDITEM_DRAWARGS* pDrawArgs, XTP_REPORTRECORDITEM_METRICS* pItemMetrics)</FONT><DIV><FONT size=2><P>CXTPReportRecordItem* pItem = pDrawArgs-&gt;pItem;</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (pItem) { </FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (_Your Condition_</FONT><FONT size=2>) </P><DIV>{ pItem-&gt;HasCheckbox(TRUE, TRUE); pItem-&gt;SetCheckedState(...); </FONT><FONT size=2>} </FONT><FONT color=#0000ff size=2>else </FONT><FONT size=2>pItem-&gt;HasCheckbox(FALSE, TRUE); }</DIV><DIV></DIV>So you will have checkboxes only in needed rows according your condition</FONT></DIV>]]>
   </description>
   <pubDate>Tue, 10 Nov 2009 11:34:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15563&amp;PID=54702&amp;title=disable-row-checkbox#54702</guid>
  </item> 
  <item>
   <title><![CDATA[Disable row checkbox :  Hi Mark,Thanks for your feedback....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15563&amp;PID=54701&amp;title=disable-row-checkbox#54701</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=669">markr</a><br /><strong>Subject:</strong> 15563<br /><strong>Posted:</strong> 10 November 2009 at 10:28am<br /><br />Hi Mark,<br><br>Thanks for your feedback. Unfortunately, handling the checkbox click event doesn't really work for me. I need the ability to show that the row checkbox is disabled before the user attempts to click it.<br><br>Is there any way to change the glyph being used to draw the checkbox from within GetItemMetrics() override? If I could have certain rows draw a disabled checkbox, that would do the trick nicely.<br>]]>
   </description>
   <pubDate>Tue, 10 Nov 2009 10:28:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15563&amp;PID=54701&amp;title=disable-row-checkbox#54701</guid>
  </item> 
  <item>
   <title><![CDATA[Disable row checkbox : You can add and use function   ON_NOTIFY(NM_CLICK,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15563&amp;PID=54673&amp;title=disable-row-checkbox#54673</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 15563<br /><strong>Posted:</strong> 09 November 2009 at 5:15pm<br /><br />You can add and use function <DIV><FONT color=#0000ff size=2><FONT size=2><P>ON_NOTIFY(NM_CLICK, XTP_ID_REPORT_CONTROL, OnReportItemClick)</P></FONT></FONT></DIV><DIV><FONT color=#0000ff size=2>void</FONT><FONT size=2> YourView::OnReportItemClick(NMHDR * pNotifyStruct, LRESULT * </FONT><FONT color=#008000 size=2>/*result*/</FONT><FONT size=2>)</FONT></DIV><DIV><FONT size=2>and implement your logic here</DIV></FONT>]]>
   </description>
   <pubDate>Mon, 09 Nov 2009 17:15:58 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15563&amp;PID=54673&amp;title=disable-row-checkbox#54673</guid>
  </item> 
  <item>
   <title><![CDATA[Disable row checkbox : Hello,I have a report control...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15563&amp;PID=54627&amp;title=disable-row-checkbox#54627</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=669">markr</a><br /><strong>Subject:</strong> 15563<br /><strong>Posted:</strong> 06 November 2009 at 4:22pm<br /><br />Hello,<br><br>I have a report control instance running in virtual mode, and one of the columns is using checkboxes.<br><br>What I would like to do is disable this checkbox for certain report rows.<br><br>Is this possible? If so, how?<br>]]>
   </description>
   <pubDate>Fri, 06 Nov 2009 16:22:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15563&amp;PID=54627&amp;title=disable-row-checkbox#54627</guid>
  </item> 
 </channel>
</rss>