<?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 : Displaying blank values</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Property Grid : Displaying blank values]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 17 Apr 2026 10:33:45 +0000</pubDate>
  <lastBuildDate>Thu, 09 Jun 2005 17:10:25 +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=2360</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[Displaying blank values :  Here&amp;#039;s a class to add &amp;#034;multi-select&amp;#034;...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2360&amp;PID=7014&amp;title=displaying-blank-values#7014</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1227">esc67</a><br /><strong>Subject:</strong> 2360<br /><strong>Posted:</strong> 09 June 2005 at 5:10pm<br /><br /><P>&nbsp;</P><P>Here's a class to add "multi-select" to some simple grid items. It lets you display blank values when the data you are displaying have conflicting values.</P><P><table width="99%"><tr><td><pre class="BBcode"></P><P>class IMultiValue {<BR>public:<BR>&nbsp;virtual bool IsMultiValue() = 0;<BR>};</P><P>template &lt;class GridItemClass&gt;<BR>class MultiSelect : public GridItemClass, public IMultiValue<BR>{<BR>public:<BR>&nbsp;MultiSelect(CString x):GridItemClass(x)<BR>&nbsp;{<BR>&nbsp;&nbsp;CXTPPropertyGridItem::SetValue("");<BR>&nbsp;}<BR>&nbsp;virtual void SetValue(CString strValue)<BR>&nbsp;{<BR>&nbsp;&nbsp;if (strValue.IsEmpty())<BR>&nbsp;&nbsp;&nbsp;CXTPPropertyGridItem::SetValue(strValue);<BR>&nbsp;&nbsp;else<BR>&nbsp;&nbsp;&nbsp;__super::SetValue(strValue);<BR>&nbsp;}<BR>&nbsp;virtual bool IsMultiValue()<BR>&nbsp;{<BR>&nbsp;&nbsp;return GetValue().IsEmpty();<BR>&nbsp;}<BR>};</P><P></pre></td></tr></table></P><P>Usage:</P><P><table width="99%"><tr><td><pre class="BBcode"></P><P><BR>CXTPPropertyGridItemBool* b = new MultiSelect&lt;CXTPPropertyGridItemBool&gt;(_T("BoolTest"));<BR>myCategory-&gt;AddChildItem(b);</P><P></pre></td></tr></table></P><P>This class could be extended to have "addValue" and "resetValue" functions...</P><P>Is there a better way to do this? Has anybody else tried?</P>]]>
   </description>
   <pubDate>Thu, 09 Jun 2005 17:10:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2360&amp;PID=7014&amp;title=displaying-blank-values#7014</guid>
  </item> 
 </channel>
</rss>