<?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 : Item value (Bug)</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Property Grid : Item value (Bug)]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 05 Apr 2026 17:53:46 +0000</pubDate>
  <lastBuildDate>Tue, 16 Sep 2008 04:22:55 +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=12116</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[Item value (Bug) : Thanks All MArk ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12116&amp;PID=41045&amp;title=item-value-bug#41045</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3545">markmark</a><br /><strong>Subject:</strong> 12116<br /><strong>Posted:</strong> 16 September 2008 at 4:22am<br /><br />Thanks All<DIV>MArk</DIV>]]>
   </description>
   <pubDate>Tue, 16 Sep 2008 04:22:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12116&amp;PID=41045&amp;title=item-value-bug#41045</guid>
  </item> 
  <item>
   <title><![CDATA[Item value (Bug) : Hi,  Yes, you are correct Oleg,it&amp;#039;s...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12116&amp;PID=41028&amp;title=item-value-bug#41028</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 12116<br /><strong>Posted:</strong> 15 September 2008 at 10:55am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Yes, you are correct Oleg,&nbsp;&nbsp;it's unnecessary <img src="https://forum.codejock.com/smileys/smiley4.gif" border="0"></DIV><DIV>&nbsp;</DIV><DIV>For the ones who will use this until Oleg fixes this:</DIV><DIV>&nbsp;</DIV><DIV>Private Sub pgPropertyGrid_AfterEdit(ByVal Item As XtremePropertyGrid.IPropertyGridItem, NewValue As String, Cancel As Boolean)</DIV><DIV>&nbsp;&nbsp;&nbsp; Dim oldVal As String<BR>&nbsp;&nbsp;&nbsp; </DIV><DIV>&nbsp;&nbsp;&nbsp; oldVal = Item.Value<BR>&nbsp;&nbsp;&nbsp;&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp; <FONT color=#00ff00><strong>Item.Value</strong> </FONT>= NewValue</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp; Dim retval As VbMsgBoxResult<BR>&nbsp;&nbsp;&nbsp; retval = MsgBox("Are you sure you want to change " &amp; oldVal &amp; " into " &amp; <FONT color=#00ff00><strong>newValue</strong> </FONT>&amp; "?", vbOKCancel)<BR>&nbsp;&nbsp;&nbsp; If retval = vbCancel Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Cancel = True<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT color=#00ff00> <strong>Item.Value</strong> </FONT>= oldVal<BR>&nbsp;&nbsp;&nbsp; End If</DIV><DIV>End Sub<BR></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Thanks a lot <img src="https://forum.codejock.com/smileys/smiley4.gif" border="0"></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Mon, 15 Sep 2008 10:55:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12116&amp;PID=41028&amp;title=item-value-bug#41028</guid>
  </item> 
  <item>
   <title><![CDATA[Item value (Bug) : ok :),  btw what point in pg...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12116&amp;PID=41025&amp;title=item-value-bug#41025</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 12116<br /><strong>Posted:</strong> 15 September 2008 at 10:31am<br /><br />ok :), <DIV>btw what point in</DIV><DIV>pgPropertyGrid.FindItem(Item.Caption).Value = NewValue ?</DIV><DIV>Why not Item.Value = NewValue </DIV>]]>
   </description>
   <pubDate>Mon, 15 Sep 2008 10:31:50 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12116&amp;PID=41025&amp;title=item-value-bug#41025</guid>
  </item> 
  <item>
   <title><![CDATA[Item value (Bug) : Hi Oleg,   In value change event...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12116&amp;PID=41012&amp;title=item-value-bug#41012</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 12116<br /><strong>Posted:</strong> 15 September 2008 at 7:03am<br /><br />Hi Oleg, <DIV>&nbsp;</DIV><DIV>In value change event the value is already set to entered value and checking here I have to know old value and as it behaves now, <strong>the value is changed into old value</strong> (user doesn't know what value he/she has entered) The workaround I showed could&nbsp;easely be done by you in after edit event. It works OK but don't change value into old value only if cancel = true.</DIV><DIV>&nbsp;</DIV><DIV>Thanks</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Mon, 15 Sep 2008 07:03:01 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12116&amp;PID=41012&amp;title=item-value-bug#41012</guid>
  </item> 
  <item>
   <title><![CDATA[Item value (Bug) : Hi, AfterEdit don&amp;#039;t know...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12116&amp;PID=41002&amp;title=item-value-bug#41002</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 12116<br /><strong>Posted:</strong> 15 September 2008 at 5:58am<br /><br /><DIV>Hi,</DIV><DIV>AfterEdit don't know if you going to&nbsp;commit this change. Use ValueChanged even instead:</DIV><DIV>&nbsp;</DIV><DIV>Private Sub pgPropertyGrid_ValueChanged(ByVal Item As XtremePropertyGrid.IPropertyGridItem)<BR>MsgBox "A Message"<BR>End Sub<BR></DIV>]]>
   </description>
   <pubDate>Mon, 15 Sep 2008 05:58:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12116&amp;PID=41002&amp;title=item-value-bug#41002</guid>
  </item> 
  <item>
   <title><![CDATA[Item value (Bug) : Hi Mark,   It&amp;#039;s nice to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12116&amp;PID=40970&amp;title=item-value-bug#40970</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 12116<br /><strong>Posted:</strong> 12 September 2008 at 8:41am<br /><br />Hi Mark, <DIV>&nbsp;</DIV><DIV>It's nice to have a workaround if you are going to release your application yourself but and it's only temporary...</DIV><DIV>&nbsp;</DIV><DIV>It will do nicely for now, but I expect CJ to fix this in next release <img src="https://forum.codejock.com/smileys/smiley2.gif" border="0"></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 12 Sep 2008 08:41:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12116&amp;PID=40970&amp;title=item-value-bug#40970</guid>
  </item> 
  <item>
   <title><![CDATA[Item value (Bug) : Thanks Aaron.  Thats a good...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12116&amp;PID=40968&amp;title=item-value-bug#40968</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3545">markmark</a><br /><strong>Subject:</strong> 12116<br /><strong>Posted:</strong> 12 September 2008 at 8:25am<br /><br />Thanks Aaron.<DIV>&nbsp;</DIV><DIV>Thats a good workaround.</DIV><DIV>&nbsp;</DIV><DIV>Mark</DIV>]]>
   </description>
   <pubDate>Fri, 12 Sep 2008 08:25:14 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12116&amp;PID=40968&amp;title=item-value-bug#40968</guid>
  </item> 
  <item>
   <title><![CDATA[Item value (Bug) : Hi Mark  Now I understand what...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12116&amp;PID=40963&amp;title=item-value-bug#40963</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 12116<br /><strong>Posted:</strong> 12 September 2008 at 4:24am<br /><br />Hi Mark<DIV>&nbsp;</DIV><DIV>Now I understand what you mean. If user types something and you display a messagebox, the original value is displayed again and you can't see what you entered. This is one for CJ to fix <img src="https://forum.codejock.com/smileys/smiley2.gif" border="0"></DIV><DIV>&nbsp;</DIV><DIV>If you really need this, you can use this workaround and in the meantime CJ can fix this <img src="https://forum.codejock.com/smileys/smiley2.gif" border="0"></DIV><DIV>&nbsp;</DIV><DIV>Private Sub pgPropertyGrid_AfterEdit(ByVal Item As XtremePropertyGrid.IPropertyGridItem, NewValue As String, Cancel As Boolean)</DIV><DIV>&nbsp;&nbsp;&nbsp; Dim oldVal As String<BR>&nbsp;&nbsp;&nbsp; Dim newVal As String<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; oldVal = Item.Value<BR>&nbsp;&nbsp;&nbsp; newVal = NewValue<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; pgPropertyGrid.FindItem(Item.Caption).Value = NewValue</DIV><DIV>&nbsp;&nbsp;&nbsp; Dim retval As VbMsgBoxResult<BR>&nbsp;&nbsp;&nbsp; retval = MsgBox("Are you sure you want to change " &amp; oldVal &amp; " into " &amp; newVal &amp; "?", vbOKCancel)<BR>&nbsp;&nbsp;&nbsp; If retval = vbCancel Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Cancel = True<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pgPropertyGrid.FindItem(Item.Caption).Value = oldVal<BR>&nbsp;&nbsp;&nbsp; End If</DIV><DIV>End Sub<BR></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 12 Sep 2008 04:24:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12116&amp;PID=40963&amp;title=item-value-bug#40963</guid>
  </item> 
  <item>
   <title><![CDATA[Item value (Bug) : Hi   Internally the control...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12116&amp;PID=40962&amp;title=item-value-bug#40962</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3545">markmark</a><br /><strong>Subject:</strong> 12116<br /><strong>Posted:</strong> 12 September 2008 at 3:30am<br /><br /><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><FONT face=Tahoma>Hi <?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><FONT face=Tahoma><SPAN style="mso-spacerun: yes">&nbsp;</SPAN><o:p></o:p></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><FONT face=Tahoma>Internally the control does store both values, but to the user they have typed into the control a value and it may be that I am displaying a message box that says are you sure you want to set this value, the user look back at what they have typed only to see it back to the original value while the msgbox is displayed.<o:p></o:p></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><FONT face=Tahoma><SPAN style="mso-spacerun: yes">&nbsp;</SPAN><o:p></o:p></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><FONT face=Tahoma>That can’t be correct.<o:p></o:p></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><FONT face=Tahoma><SPAN style="mso-spacerun: yes">&nbsp;</SPAN><o:p></o:p></FONT></FONT></P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-: EN-GB; mso-fareast-: EN-US; mso-bidi-: AR-SA">Mark</SPAN>]]>
   </description>
   <pubDate>Fri, 12 Sep 2008 03:30:52 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12116&amp;PID=40962&amp;title=item-value-bug#40962</guid>
  </item> 
  <item>
   <title><![CDATA[Item value (Bug) : Hi,  No it isn&amp;#039;t Mark.  Not...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12116&amp;PID=40901&amp;title=item-value-bug#40901</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 12116<br /><strong>Posted:</strong> 10 September 2008 at 10:49am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>No it isn't Mark.</DIV><DIV>&nbsp;</DIV><DIV>Not in this event, suppose you would check the entered value and it wouldn't be right, you are able to cancel the change. So the value must be still the same as before changing otherwise you would have to check the old value itself. After this event the value changed event will fire and the value is changed into the entered value. just as you see in your sample when displaying a MessageBox. </DIV><DIV>&nbsp;</DIV><DIV>Hope this helps <img src="https://forum.codejock.com/smileys/smiley2.gif" border="0"></DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 10 Sep 2008 10:49:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12116&amp;PID=40901&amp;title=item-value-bug#40901</guid>
  </item> 
 </channel>
</rss>