<?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 : Data validation and error handling</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Property Grid : Data validation and error handling]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 19 Apr 2026 05:56:01 +0000</pubDate>
  <lastBuildDate>Sun, 21 Jul 2013 11:39:40 +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=21806</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[Data validation and error handling :  Hi Oleg,When validating a grid-item...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=21806&amp;PID=71410&amp;title=data-validation-and-error-handling#71410</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8120">Mirek</a><br /><strong>Subject:</strong> 21806<br /><strong>Posted:</strong> 21 July 2013 at 11:39am<br /><br />Hi Oleg,<div>&nbsp;</div><div>When validating a grid-item with an incorrect value, I want to make two steps:<br>Step A/ - Display an error message explaining the error<br>Step B/ - Return the focus on the grid item with incorrect value (CXTPPropertyGridInplaceEdit window)<br>While Step A is quite easy (overriding the CXTPPropertyGridItem::OnValidateEdit() or CXTPPropertyGridItem::OnAfterEdit()), I cannot find any mechanism for implementing Step B. The problem is that CXTPPropertyGridItem::OnValidateEdit() is usually called on CXTPPropertyGridInplaceEdit::OnEnKillfocus(), which can be invoked by a number of various actions (messages, commands, ...), and I do not know how to interrupt/cancel such actions after displaying an error message. For example, I have two MDI child-frames, using the same property grid. If I enter a wrong value into the grid and click on the second child frame, the program displays an error message correctly but, after that, it continues and activates the second frame, which is bad. The frame-activation should be canceled so that the user could fix the incorrect value in the grid. I would be able to solve it for this action type (MDI frame activation) but it does not make any sense because there are hundreds of other actions causing the same problem. I believe that there should be a standard mechanism in your Property Grid, solving this problem on a general level. Please let me know if you know a solution or if there is a XTP-example in which I could find a solution.&nbsp;&nbsp;&nbsp; <br></div><div>Thank you</div><div>M.</div>]]>
   </description>
   <pubDate>Sun, 21 Jul 2013 11:39:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=21806&amp;PID=71410&amp;title=data-validation-and-error-handling#71410</guid>
  </item> 
 </channel>
</rss>