<?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 : Events fired when item is ReadOnly</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Property Grid : Events fired when item is ReadOnly]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 05 Apr 2026 21:44:06 +0000</pubDate>
  <lastBuildDate>Fri, 08 Jun 2007 07:39:38 +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=7334</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[Events fired when item is ReadOnly : When an Item is ReadOnly, it should...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7334&amp;PID=23532&amp;title=events-fired-when-item-is-readonly#23532</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2720">Albert1</a><br /><strong>Subject:</strong> 7334<br /><strong>Posted:</strong> 08 June 2007 at 7:39am<br /><br /><br>When an Item is ReadOnly, it should not fire events. In this code:<br><br><table width="99%"><tr><td><pre class="BBcode"><br>Private Sub Form_Load()<br>&nbsp;&nbsp;&nbsp; With PropertyGrid1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .AddCategory "category"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Categories(1).AddChildItem PropertyItemString, "Item"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Categories(1).Childs(1).ReadOnly = True<br>&nbsp;&nbsp;&nbsp; End With<br>End Sub<br>Private Sub PropertyGrid1_AfterEdit(ByVal Item As XtremePropertyGrid.IPropertyGridItem, NewValue As String, Cancel As Boolean)<br>&nbsp;&nbsp;&nbsp; MsgBox ("Why Am I here?")<br>End Sub<br></pre></td></tr></table><br><br>When you click on the data section of the Item and then you leave the field, the event AfterEdit is fired. If I have a centralized management inside this function I have to spend extra time in checking whether the Item is ReadOnly or not.<br>IMHO, ReadOnly=True should automatically set ItemHasEdit to False.<br><br><table width="99%"><tr><td><pre class="BBcode"><br>&nbsp;&nbsp; &nbsp;PropertyGrid1.Categories(1).Childs(1).Flags = Not ItemHasEdit<br></pre></td></tr></table><br><br>]]>
   </description>
   <pubDate>Fri, 08 Jun 2007 07:39:38 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7334&amp;PID=23532&amp;title=events-fired-when-item-is-readonly#23532</guid>
  </item> 
 </channel>
</rss>