<?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 : How to set a particular item ?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Property Grid : How to set a particular item ?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 19 Apr 2026 09:35:58 +0000</pubDate>
  <lastBuildDate>Fri, 23 Jan 2009 04:58:32 +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=13231</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[How to set a particular item ? : Hi;I use this solution when creating...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13231&amp;PID=44832&amp;title=how-to-set-a-particular-item#44832</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 13231<br /><strong>Posted:</strong> 23 January 2009 at 4:58am<br /><br />Hi;<br><br>I use this solution when creating the property grid item:<br><br><table width="99%"><tr><td><pre class="BBcode">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pItem=pCategory-&gt;AddChildItem(new CXTPPropertyGridItem(IDS_STATE_PROPITEM_CHARTCONTENT));<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CXTPPropertyGridItemConstraints* pConstraints=pItem-&gt;GetConstraints();<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CString strConstraint;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; VERIFY(strConstraint.LoadString(IDS_STATECHART_CAPTION0));<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pConstraints-&gt;AddConstraint(strConstraint);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; VERIFY(strConstraint.LoadString(IDS_STATECHART_CAPTION1));<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pConstraints-&gt;AddConstraint(strConstraint);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; VERIFY(strConstraint.LoadString(IDS_STATECHART_CAPTION2));<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pConstraints-&gt;AddConstraint(strConstraint);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; VERIFY(strConstraint.LoadString(IDS_STATECHART_CAPTION3));<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pConstraints-&gt;AddConstraint(strConstraint);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; VERIFY(strConstraint.LoadString(IDS_STATECHART_CAPTION4));<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pConstraints-&gt;AddConstraint(strConstraint);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; VERIFY(strConstraint.LoadString(IDS_STATECHART_CAPTION5));<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pConstraints-&gt;AddConstraint(strConstraint);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pItem-&gt;SetFlags(xtpGridItemHasComboButton);<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; _XRStateChartTypes chartType=_pDoc-&gt;GetChartType();<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pConstraints-&gt;SetCurrent(chartType);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pItem-&gt;SetValue(pConstraints-&gt;GetAt(chartType));</pre></td></tr></table><br>]]>
   </description>
   <pubDate>Fri, 23 Jan 2009 04:58:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13231&amp;PID=44832&amp;title=how-to-set-a-particular-item#44832</guid>
  </item> 
  <item>
   <title><![CDATA[How to set a particular item ? : So what problem ? call pItem-&amp;gt;SetValue...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13231&amp;PID=44822&amp;title=how-to-set-a-particular-item#44822</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 13231<br /><strong>Posted:</strong> 23 January 2009 at 1:41am<br /><br />So what problem ? call pItem-&gt;SetValue to change current item.]]>
   </description>
   <pubDate>Fri, 23 Jan 2009 01:41:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13231&amp;PID=44822&amp;title=how-to-set-a-particular-item#44822</guid>
  </item> 
  <item>
   <title><![CDATA[How to set a particular item ? : No, i just want it to highlight...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13231&amp;PID=44793&amp;title=how-to-set-a-particular-item#44793</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4142">Atul</a><br /><strong>Subject:</strong> 13231<br /><strong>Posted:</strong> 22 January 2009 at 8:17am<br /><br />No, i just want it to highlight the appropriate current item.I have a way of storing and restoring&nbsp;]]>
   </description>
   <pubDate>Thu, 22 Jan 2009 08:17:59 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13231&amp;PID=44793&amp;title=how-to-set-a-particular-item#44793</guid>
  </item> 
  <item>
   <title><![CDATA[How to set a particular item ? : ???  so store and restore it....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13231&amp;PID=44792&amp;title=how-to-set-a-particular-item#44792</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 13231<br /><strong>Posted:</strong> 22 January 2009 at 8:08am<br /><br /><P>??? </P><DIV>so store and restore it.</DIV>]]>
   </description>
   <pubDate>Thu, 22 Jan 2009 08:08:06 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13231&amp;PID=44792&amp;title=how-to-set-a-particular-item#44792</guid>
  </item> 
  <item>
   <title><![CDATA[How to set a particular item ? : Hi, I have a CXTPPropertyGridItemConstraints*...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13231&amp;PID=44789&amp;title=how-to-set-a-particular-item#44789</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4142">Atul</a><br /><strong>Subject:</strong> 13231<br /><strong>Posted:</strong> 22 January 2009 at 8:03am<br /><br />Hi,<br>&nbsp;&nbsp;&nbsp; I have a CXTPPropertyGridItemConstraints* pList. To this list, I am adding three constraints. <br>pList-&gt;AddConstraint(_T("No Shadow"));<br>pList-&gt;AddConstraint(_T("Hard Shadow"));<br>pList-&gt;AddConstraint(_T("Soft Shadow"));<br>Now, I want to have a functionality such that, when the user selects on Hard Shadow and closes the application, and again reopens it, the grid should show "Hard Shadow". I am storing the state of the variables into registry.<br>Is there any way, by which this can be done ?<br>Thanks in advance,<br>Atul<br>]]>
   </description>
   <pubDate>Thu, 22 Jan 2009 08:03:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13231&amp;PID=44789&amp;title=how-to-set-a-particular-item#44789</guid>
  </item> 
 </channel>
</rss>