<?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 : Validating input - CXTPPropertyGridItem</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Property Grid : Validating input - CXTPPropertyGridItem]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 19 Apr 2026 10:42:41 +0000</pubDate>
  <lastBuildDate>Mon, 17 Oct 2005 02:37:20 +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=3032</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[Validating input - CXTPPropertyGridItem : With repsect to the problem above...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3032&amp;PID=9069&amp;title=validating-input-cxtppropertygriditem#9069</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1176">Kevin6</a><br /><strong>Subject:</strong> 3032<br /><strong>Posted:</strong> 17 October 2005 at 2:37am<br /><br /><P>With repsect to the problem above - it seems to me that Validate is incorrectly specified. Currently it is declared as -:</P><P>virtual void Validate(void);</P><P>when I beleive it should really be </P><P>virtual bool Validate(void);</P><P>Where the default implementation always returns true. How when the user derives and implements this method should they return 'false' then the cursor does not move to the next item in the grid.</P><P>Anythoughts on the initial post?</P>]]>
   </description>
   <pubDate>Mon, 17 Oct 2005 02:37:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3032&amp;PID=9069&amp;title=validating-input-cxtppropertygriditem#9069</guid>
  </item> 
  <item>
   <title><![CDATA[Validating input - CXTPPropertyGridItem : I am trying to validate a value...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3032&amp;PID=9043&amp;title=validating-input-cxtppropertygriditem#9043</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1176">Kevin6</a><br /><strong>Subject:</strong> 3032<br /><strong>Posted:</strong> 14 October 2005 at 9:25am<br /><br /><P>I am trying to validate a value in a CXTPPropertyGridItem. The handler OnValidateEdit&nbsp; seems a reasonable place to start.</P><P>I validate the data and find a problem. I alert the user - however the PropertyGrid has moved the selected item to the next one in the PropertyGrid list....</P><P>This is not the behaviour I want - as in some cases its imperitive that I have a value in the list...</P><P>I&nbsp;have got close - by calling CListBox::SetCurSel - but because I cannot set m_pSelected in CXTPPropertyGridView class - any subsequent selections are out of synchronisation for one click.... and cause the validation routine to fail....</P><P>Could you please suggest to me a method by which I may move the selected item - BACK in the PropertyGridView to the problem item?????</P><P>regards</P><P>Richard</P><span style="font-size:10px"><br /><br />Edited by Kevin6</span>]]>
   </description>
   <pubDate>Fri, 14 Oct 2005 09:25:38 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3032&amp;PID=9043&amp;title=validating-input-cxtppropertygriditem#9043</guid>
  </item> 
 </channel>
</rss>