<?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 : Bug In Begin Update!</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Property Grid : Bug In Begin Update!]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 05 Apr 2026 19:31:56 +0000</pubDate>
  <lastBuildDate>Tue, 03 Jan 2006 03:12:18 +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=3437</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[Bug In Begin Update! : Thank you Oleg. Happy new year....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3437&amp;PID=10383&amp;title=bug-in-begin-update#10383</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1020">Superpippo</a><br /><strong>Subject:</strong> 3437<br /><strong>Posted:</strong> 03 January 2006 at 3:12am<br /><br /><P>Thank you Oleg.</P><P>Happy new year.</P>]]>
   </description>
   <pubDate>Tue, 03 Jan 2006 03:12:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3437&amp;PID=10383&amp;title=bug-in-begin-update#10383</guid>
  </item> 
  <item>
   <title><![CDATA[Bug In Begin Update! : Hello, Yes, it is the way how...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3437&amp;PID=10372&amp;title=bug-in-begin-update#10372</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 3437<br /><strong>Posted:</strong> 30 December 2005 at 1:16pm<br /><br /><P>Hello,</P><P>Yes, it is the way how BeginUpdate works - it deletes all items on call.</P><P>&nbsp;</P><P>But Everyway, Happy New year :)</P>]]>
   </description>
   <pubDate>Fri, 30 Dec 2005 13:16:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3437&amp;PID=10372&amp;title=bug-in-begin-update#10372</guid>
  </item> 
  <item>
   <title><![CDATA[Bug In Begin Update! : I don&amp;#039; t forget nothing....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3437&amp;PID=10369&amp;title=bug-in-begin-update#10369</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1020">Superpippo</a><br /><strong>Subject:</strong> 3437<br /><strong>Posted:</strong> 30 December 2005 at 3:52am<br /><br /><P>I don' t forget nothing. You can find the line as the first line in the code as follow:</P><P>Private iID As Integer</P><P>If you look better the code you can understand why i did so: the reason is that in the form load i start the population of propertygrid, so&nbsp;I save on iID the counter of items.</P><P>When the user press the command button i add some categories and items on propertygrid, and i use iID to give correct .id property to everyone.</P><P>But when i do so all the previous population of category and item are destroyed!</P><P>Now I have understand that may be&nbsp;this is not a bug but a serious limit of beginupdate\endupdate implementation, since the <A href="mk:@MSITStore:C:\Programmi\Codejock%20Software\ActiveX\Xtreme%20Suite%20Pro%20ActiveX%20v9.60\help\SymbolReference.chm::/XtremePropertyGrid~PropertyGridUpdateC&#111;ntext_members.html" target="_blank"><FONT color=#800080>PropertyGridUpdateContext</FONT></A>&nbsp;object doesn't save an image of the population but just an image of properties of the items in the population. So if you want to update something in propertygrid you MUST rebuild all the grid!!!</P><P><U>This way Beginupdate\Endupdate works fine but it's a really poor implementation!!!</U></P><P>Everyway, thanks a lot Oleg, you are a really kind guy and the next time you came in Italy I will glad to eath a pizza with you !!!!</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Fri, 30 Dec 2005 03:52:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3437&amp;PID=10369&amp;title=bug-in-begin-update#10369</guid>
  </item> 
  <item>
   <title><![CDATA[Bug In Begin Update! : Yes, I have tested it, but you...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3437&amp;PID=10367&amp;title=bug-in-begin-update#10367</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 3437<br /><strong>Posted:</strong> 30 December 2005 at 1:55am<br /><br /><P>Yes, I have tested it, but you didn't copy it.</P><P>You forgot first line</P><P>Dim iCategory As Integer, iItem As Integer, iID As Integer</P><P>and delete "Private iID As Integer"</P><P>&nbsp;</P><P>See result: <A href="https://forum.codejock.com/uploads/oleg/2005-12-30_015534_codejockBeginUpdate.zip" target="_blank">2005-12-30_015534_codejockBeginUpdate.zip</A></P>]]>
   </description>
   <pubDate>Fri, 30 Dec 2005 01:55:38 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3437&amp;PID=10367&amp;title=bug-in-begin-update#10367</guid>
  </item> 
  <item>
   <title><![CDATA[Bug In Begin Update! : Dear Oleg, thank you for the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3437&amp;PID=10351&amp;title=bug-in-begin-update#10351</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1020">Superpippo</a><br /><strong>Subject:</strong> 3437<br /><strong>Posted:</strong> 28 December 2005 at 3:56am<br /><br /><P>Dear Oleg,</P><P>thank you for the answer.</P><P>Have you tested your code ?</P><P>I&nbsp;put it on my sample, but&nbsp;still doesn't work at all !!!!</P><P>Here is my sample code with your workaround....</P><P><A href="https://forum.codejock.com/uploads/Superpippo/2005-12-28_035237_codejockBeginUpdate.zip" target="_blank">2005-12-28_035237_codejockBeginUpdate.zip</A></P><P>so&nbsp;you can see it doesn't work!!!!</P><P>May be that it is really a bug, please let me know.</P><P>Waiting for&nbsp;your answer, good year to all codejock staff.</P><P>P.S. I am using 9.60.1 release of propertygrid.</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Wed, 28 Dec 2005 03:56:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3437&amp;PID=10351&amp;title=bug-in-begin-update#10351</guid>
  </item> 
  <item>
   <title><![CDATA[Bug In Begin Update! :  Unfortunatelly it is not bug...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3437&amp;PID=10328&amp;title=bug-in-begin-update#10328</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 3437<br /><strong>Posted:</strong> 26 December 2005 at 2:14am<br /><br /><P>&nbsp;</P><P>Unfortunatelly it is not bug <IMG src="http://forum.codejock.com/smileys/smiley1.gif" border="0"></P><P>The secret of Beginupdate\EndUpdate methods that they store _ID_ of items was selected/expanded and set selection/expand state &nbsp;to item with same _ID_ after EndUpdate call:</P><P>Here fix:</P><P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim iCategory As Integer, iItem As Integer, <strong>iID</strong> As Integer</P><P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; For iCategory = 0 To 2<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; Set Category = wndPropertyGrid.AddCategory("Category " &amp; iCategory)<BR>&nbsp;&nbsp;&nbsp;<strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; iID = iID + 1<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; Category.Id = iID<BR>&nbsp;</strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; For iItem = 0 To 2<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Item = Category.AddChildItem(PropertyItemBool, "Item " &amp; iItem, True)<BR>&nbsp;<strong> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; iID = iID + 1<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Item.Id = iID<BR></strong> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; Next<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Next<BR></P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Mon, 26 Dec 2005 02:14:12 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3437&amp;PID=10328&amp;title=bug-in-begin-update#10328</guid>
  </item> 
  <item>
   <title><![CDATA[Bug In Begin Update! : Hi Codejock guys! Here a christmas...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3437&amp;PID=10317&amp;title=bug-in-begin-update#10317</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1020">Superpippo</a><br /><strong>Subject:</strong> 3437<br /><strong>Posted:</strong> 23 December 2005 at 10:02am<br /><br /><P>Hi Codejock guys!</P><P>Here a christmas bug for you!!!</P><P>Beginupdate\EndUpdate methods are bugfull.&nbsp;Propertygrid doesn't save at all status (item selected, sorting, item expanded etc. ) of the property grid!!!</P><P>I&nbsp;have a propertygrid and i want update this propertygrid. According to the documentation, the BeginUpdate\EndUpdate let me save the status (item selected, sorting, item expanded etc. ) of the property grid inside a <A href="mk:@MSITStore:C:\Programmi\Codejock%20Software\ActiveX\Xtreme%20Suite%20Pro%20ActiveX%20v9.60\help\SymbolReference.chm::/XtremePropertyGrid~PropertyGridUpdateC&#111;ntext_members.html" target="_blank">PropertyGridUpdateContext</A>&nbsp;object, then i can update the propertygrid and at last i call endupdate to restore the status of propertygrid.</P><P>Well, it doesn't work at all!!!</P><P>Look at the sample in attachment, here i have a simple form with a propertygrid and a button. In the form_load i load the propertygrid with a category (mycategory) and an item (myitem). Pressing the command button i call code to add some category and item to property grid, this code is inside a beginupdate\endupdate.</P><P>Ok now try the code, at first you can see the property filled with MyCategory and MyItem. But when you press the command button the propertygrid clear MyCategory and MyItem and and add all the others category. </P><P>So propertygrid doesn't save at all status (item selected, sorting, item expanded etc. ) of the property grid!!!</P><P>What's appened ???</P><P>Thank you in advance.</P><P><A href="https://forum.codejock.com/uploads/Superpippo/2005-12-23_100202_CodejockBeginUpdateBug.zip" target="_blank">2005-12-23_100202_CodejockBeginUpdateBug.zip</A></P><P>&nbsp;</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Fri, 23 Dec 2005 10:02:12 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3437&amp;PID=10317&amp;title=bug-in-begin-update#10317</guid>
  </item> 
 </channel>
</rss>