<?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 : Move Up/Down records</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Move Up/Down records]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 18 Apr 2026 12:44:37 +0000</pubDate>
  <lastBuildDate>Thu, 19 Mar 2009 07:30:11 +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=13641</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[Move Up/Down records : Perhaps you should read this thread:...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13641&amp;PID=46896&amp;title=move-up-down-records#46896</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 13641<br /><strong>Posted:</strong> 19 March 2009 at 7:30am<br /><br />Perhaps you should read this thread: <a href="http://forum.codejock.com/forum_posts.asp?TID=13113" target="_blank">http://forum.codejock.com/forum_posts.asp?TID=13113</A>]]>
   </description>
   <pubDate>Thu, 19 Mar 2009 07:30:11 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13641&amp;PID=46896&amp;title=move-up-down-records#46896</guid>
  </item> 
  <item>
   <title><![CDATA[Move Up/Down records : Somehow I got the solution. It...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13641&amp;PID=46689&amp;title=move-up-down-records#46689</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4978">Sudhakar</a><br /><strong>Subject:</strong> 13641<br /><strong>Posted:</strong> 14 March 2009 at 11:21am<br /><br /><P>Somehow I got the solution. It works with CXTPReportRecord instead of CXTPReportRow.</P><P>&nbsp;void CPVRuleManagerDlg::OnBnClickedMoveup()<BR>&nbsp;{<BR>&nbsp; CXTPReportRow *pSelRow = m_wndReportCtrl.GetFocusedRow();<BR>&nbsp; if( pSelRow != NULL )<BR>&nbsp; {<BR>&nbsp;&nbsp;&nbsp; int index = pSelRow-&gt;GetIndex();</P><P>&nbsp;&nbsp;&nbsp; if( index== 0)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return;</P><P>&nbsp;&nbsp;&nbsp; <strong>CXTPReportRecord *pRecord = m_wndReportCtrl.GetRecords()-&gt;GetAt(index);<BR></strong>&nbsp;&nbsp;&nbsp; if(pRecord)<BR>&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pRecord-&gt;InternalAddRef();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <strong>m_wndReportCtrl.GetRecords()-&gt;RemoveAt(index);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_wndReportCtrl.GetRecords()-&gt;InsertAt(index-1,pRecord);</strong><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_wndReportCtrl.Populate();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_wndReportCtrl.SetFocus();<BR>&nbsp;&nbsp;&nbsp; }<BR>&nbsp; }<BR>}</P>]]>
   </description>
   <pubDate>Sat, 14 Mar 2009 11:21:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13641&amp;PID=46689&amp;title=move-up-down-records#46689</guid>
  </item> 
  <item>
   <title><![CDATA[Move Up/Down records : I havebelowcode in a button(&amp;#034;Move...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13641&amp;PID=46510&amp;title=move-up-down-records#46510</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4978">Sudhakar</a><br /><strong>Subject:</strong> 13641<br /><strong>Posted:</strong> 11 March 2009 at 4:25am<br /><br />I have&nbsp;below&nbsp;code in a button("Move Up" ) handler. I need to move the record whenever the user clicks the "Move Up" button after selecting a report control row. Below&nbsp;code is not moving the record up. The focus(selection) just moving up, but the data of the&nbsp;selected record&nbsp;is not moving up. What could be the problem? Please suggest. <DIV>&nbsp;</DIV><DIV><FONT size=2><FONT color=#0000ff size=2><P>void CPVRuleManagerDlg::OnBnClickedMoveup()<BR>{<BR>&nbsp; CXTPReportRow *pSelRow = m_wndReportCtrl.GetFocusedRow();<BR>&nbsp; if( pSelRow != NULL )<BR>&nbsp; {<BR>&nbsp;&nbsp;&nbsp; int index = pSelRow-&gt;GetIndex();<BR>&nbsp;&nbsp;&nbsp; CXTPReportRow *pRow = m_wndReportCtrl.GetRows()-&gt;GetAt(index);<BR>&nbsp;&nbsp;&nbsp; if(pRow)<BR>&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pRow-&gt;InternalAddRef();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_wndReportCtrl.GetRows()-&gt;RemoveAt(index);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_wndReportCtrl.GetRows()-&gt;InsertAt(index-1,pRow);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_wndReportCtrl.RedrawControl();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_wndReportCtrl.SetFocus();<BR>&nbsp;&nbsp;&nbsp; }<BR>&nbsp; }<BR>&nbsp; m_wndReportCtrl.Populate();<BR>}</FONT></P></FONT></DIV>]]>
   </description>
   <pubDate>Wed, 11 Mar 2009 04:25:50 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13641&amp;PID=46510&amp;title=move-up-down-records#46510</guid>
  </item> 
 </channel>
</rss>