<?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 : [SOLVED] Problem on adding child row with editing</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : [SOLVED] Problem on adding child row with editing]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 19 Apr 2026 07:47:15 +0000</pubDate>
  <lastBuildDate>Fri, 22 Apr 2011 08:01:05 +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=18264</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[[SOLVED] Problem on adding child row with editing : Hi;Forget it; just found Repor...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18264&amp;PID=64049&amp;title=solved-problem-on-adding-child-row-with-editing#64049</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 18264<br /><strong>Posted:</strong> 22 April 2011 at 8:01am<br /><br />Hi;<br><br>Forget it; just found <br><pre ="BBcode">Report_.GetFocusedRow()-&gt;SetExpanded()</pre>]]>
   </description>
   <pubDate>Fri, 22 Apr 2011 08:01:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18264&amp;PID=64049&amp;title=solved-problem-on-adding-child-row-with-editing#64049</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] Problem on adding child row with editing :  Hi;I use this code to add a...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18264&amp;PID=64048&amp;title=solved-problem-on-adding-child-row-with-editing#64048</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 18264<br /><strong>Posted:</strong> 22 April 2011 at 7:51am<br /><br />Hi;<br><br>I use this code to add a new record to a parent record and immediately start editing this item (emulating windows explorer "add new folder" command).<br><table width="99%"><tr><td><pre class="BBcode">&nbsp;&nbsp;&nbsp; CTreePaneRecord* Record=reinterpret_cast&lt;CTreePaneRecord*&gt;(Report_.GetFocusedRow()-&gt;GetRecord());<br>&nbsp;&nbsp;&nbsp; CXTPReportRecord* NewRecord=Record-&gt;GetChilds()-&gt;Add(new CTreePaneRecord(RecordTypeArticleGroup, -1, L"Neue Artikelgruppe"));<br>&nbsp;&nbsp;&nbsp; Report_.Populate();<br>&nbsp;&nbsp;&nbsp; CXTPReportRow* NewRow=Report_.GetRows()-&gt;FindInTree(NewRecord);<br>&nbsp;&nbsp;&nbsp; if (NewRow!=0) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Report_.SetFocusedRow(TRUE, NewRow, FALSE, FALSE);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; XTP_REPORTRECORDITEM_ARGS itemArgs(&amp;Report_, NewRow, Report_.GetColumns()-&gt;GetAt(0));<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Report_.EditItem(&amp;itemArgs);<br>&nbsp;&nbsp;&nbsp; }</pre></td></tr></table><br>When the parent row is expanded everything works fine, but in collapsed state nothing happens (XTP_NM_REPORT_EDIT_CANCELED is called immediately).<br><br>Whats the right sequence to solve this?<br>]]>
   </description>
   <pubDate>Fri, 22 Apr 2011 07:51:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18264&amp;PID=64048&amp;title=solved-problem-on-adding-child-row-with-editing#64048</guid>
  </item> 
 </channel>
</rss>