<?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 : AfterEdit clear &amp; add new items trouble</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Property Grid : AfterEdit clear &amp; add new items trouble]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 24 May 2026 10:01:19 +0000</pubDate>
  <lastBuildDate>Wed, 15 Feb 2006 05:18:03 +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=3655</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[AfterEdit clear &amp; add new items trouble : Hi  All I want to doisclear and...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3655&amp;PID=10983&amp;title=afteredit-clear-add-new-items-trouble#10983</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1789">brujaedea</a><br /><strong>Subject:</strong> 3655<br /><strong>Posted:</strong> 15 February 2006 at 5:18am<br /><br /><P>Hi </P><P>All I want to do&nbsp;is&nbsp;clear and add new items to de PropertyGrid&nbsp;after I select an option in one&nbsp;item... (I have a combobox with some options depending on the one you select, you will have different new options)<BR><BR>My class has this:<BR>-&nbsp;"LoadInfo" method that clears all categories and then adds all items depending on the class info. (it uses beginUpdate and EndUpdate)<BR>-&nbsp; After edit function that changes some class atrributtes and returns a boolean&nbsp;which expresses&nbsp;whether the propertygrid needs to be reloaded or not.</P><P>In my AfterEditEventHandler:<BR><FONT color=#0000ff size=2>void</FONT><FONT size=2> Form1::my_axPropertyGrid_AfterEdit(System::Object * sender, AxInterop::XtremePropertyGrid::_DPropertyGridEvents_AfterEdi tEvent * e){<BR>&nbsp;&nbsp;&nbsp; </FONT><FONT size=2>bool&nbsp;need_refresh = my_object-&gt;afteredit(sender,e);<BR>&nbsp;&nbsp;&nbsp; if (need_refresh){<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; my_object-&gt;LoadInfo();<BR>&nbsp;&nbsp;&nbsp; </FONT><FONT size=2>}<BR>}<BR></FONT><FONT size=2>And.... It crashes&nbsp;after doing the LoadInfo... I get a nice NullReferenceException ... Any Idea of what&nbsp;I´m&nbsp;doing wrong?? </FONT><FONT size=2><BR></FONT></P><!-- Message  ''"" -->]]>
   </description>
   <pubDate>Wed, 15 Feb 2006 05:18:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3655&amp;PID=10983&amp;title=afteredit-clear-add-new-items-trouble#10983</guid>
  </item> 
 </channel>
</rss>