<?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 : AddChildItemBinded &amp; Read&#079;nly Properties</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Property Grid : AddChildItemBinded &amp; Read&#079;nly Properties]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 05 Apr 2026 13:14:27 +0000</pubDate>
  <lastBuildDate>Sun, 05 Feb 2006 10:00:21 +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=3598</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[AddChildItemBinded &amp; Read&#079;nly Properties : Think the problem that you bind...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3598&amp;PID=10819&amp;title=addchilditembinded-readonly-properties#10819</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 3598<br /><strong>Posted:</strong> 05 February 2006 at 10:00am<br /><br />Think the problem that you bind the item to non "Long" property. Instead AddChildItemBinded use AddChildItem.]]>
   </description>
   <pubDate>Sun, 05 Feb 2006 10:00:21 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3598&amp;PID=10819&amp;title=addchilditembinded-readonly-properties#10819</guid>
  </item> 
  <item>
   <title><![CDATA[AddChildItemBinded &amp; Read&#079;nly Properties : Hi Oleg  TypeName(wndPropert...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3598&amp;PID=10817&amp;title=addchilditembinded-readonly-properties#10817</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=280">ianp</a><br /><strong>Subject:</strong> 3598<br /><strong>Posted:</strong> 05 February 2006 at 7:50am<br /><br /><P>Hi Oleg</P><P><table width="99%"><tr><td><pre class="BBcode">TypeName(wndPropertyGrid.FindItem("Count")) = IPropertyGridItem<BR>wndPropertyGrid.FindItem("Count").value = 1<BR>oItems.Count = 2<BR>TypeName(oItems) = clsItems</pre></td></tr></table></P><P>If I don't set the ReadOnly flag on the PropertyGridItem, then I get the same error when programmatically setting the value, or by typing the new value into the propertygrid using the keyboard.</P><P>The error message&nbsp;that&nbsp;appears is technically&nbsp;correct. oItems.Count is a Property, of type Long, defined&nbsp;with a Get and no Let or Set. (i.e. the Count property is a read only value which is set based on other properties within the oItems object)</P><P><table width="99%"><tr><td><pre class="BBcode">Private colItems As Collection<BR>Public Property Get Code() As Long<BR>&nbsp;&nbsp;&nbsp; If Not colItems Is Nothing Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Count= colItems.Count<BR>&nbsp;&nbsp;&nbsp; Else<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Counts= 0<BR>&nbsp;&nbsp;&nbsp; End If<BR>End Property</pre></td></tr></table> </P><P>Any other ideas, or should I just revert to a regular child item as I am only displaying this value for informational purposes and have no real need for this property to be bound?</P>]]>
   </description>
   <pubDate>Sun, 05 Feb 2006 07:50:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3598&amp;PID=10817&amp;title=addchilditembinded-readonly-properties#10817</guid>
  </item> 
  <item>
   <title><![CDATA[AddChildItemBinded &amp; Read&#079;nly Properties : Check that wndPropertyGrid.FindItem(&amp;#034;Count&amp;#034;)...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3598&amp;PID=10810&amp;title=addchilditembinded-readonly-properties#10810</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 3598<br /><strong>Posted:</strong> 04 February 2006 at 8:27am<br /><br /><P>Check that wndPropertyGrid.FindItem("Count") returns some object and not "Nothing". </P><P>&nbsp;</P><P>If you don't set xpgItem.ReadOnly = True do you have this error?</P>]]>
   </description>
   <pubDate>Sat, 04 Feb 2006 08:27:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3598&amp;PID=10810&amp;title=addchilditembinded-readonly-properties#10810</guid>
  </item> 
  <item>
   <title><![CDATA[AddChildItemBinded &amp; Read&#079;nly Properties : I&amp;#039;m having difficulty updating...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3598&amp;PID=10804&amp;title=addchilditembinded-readonly-properties#10804</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=280">ianp</a><br /><strong>Subject:</strong> 3598<br /><strong>Posted:</strong> 03 February 2006 at 11:39pm<br /><br /><P>I'm having difficulty updating the value displayed by a propertygrid item which is bound to a readonly property.</P><P>Here is the code I used to add the bound item:</P><P><table width="99%"><tr><td><pre class="BBcode">Set xpgItem = xpgCategory.AddChildItemBinded(PropertyItemNumber, oItems, "Count")<BR>xpgItem.ReadOnly = True</pre></td></tr></table></P><P>If the value of oItems.Count subsequently changes, I need the PropertyGrid to display the new value, so (as per the documentation) I <em>explicitly update the PropertyGridItem value with the contents of the variable</em>:</P><P><table width="99%"><tr><td><pre class="BBcode">wndPropertyGrid.FindItem("Count").Value = oItems.Count</pre></td></tr></table></P><P>However, when I do this, I get the following run-time error:</P><P><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Quote" alt="Quote" style="vertical-align: text-bottom;" /> Run-time error '451':</P><P>Property let procedure not defined and property get procedure did not return an object</td></tr></table></P><P>Any ideas what I'm doing wrong?</P>]]>
   </description>
   <pubDate>Fri, 03 Feb 2006 23:39:43 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3598&amp;PID=10804&amp;title=addchilditembinded-readonly-properties#10804</guid>
  </item> 
 </channel>
</rss>