<?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 : Selecting rows in CXTPReportC&#111;ntrol and</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Selecting rows in CXTPReportC&#111;ntrol and]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 21 Apr 2026 02:52:24 +0000</pubDate>
  <lastBuildDate>Tue, 19 Apr 2005 07:45: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=2125</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[Selecting rows in CXTPReportC&#111;ntrol and : We added CXTPReportRows::Find...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2125&amp;PID=6283&amp;title=selecting-rows-in-cxtpreportcontrol-and#6283</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 2125<br /><strong>Posted:</strong> 19 April 2005 at 7:45am<br /><br /><P>We added <SPAN lang=ES-PE style="mso-ansi-: ES-PE"><FONT face="Times New Roman" size=3>CXTPReportRows::</FONT></SPAN><FONT size=2>Find method, and updated our sample to allow inplace edit after add new item, please wait a little for 9.70 release.</FONT></P><P><FONT size=2></FONT>&nbsp;</P><P><FONT size=2>code from new source:</FONT></P><FONT size=2><P>CXTPReportRow* CXTPReportRows::Find(CXTPReportRecord* pRecord)</P><P>{</P><P></FONT><FONT color=#0000ff size=2>for</FONT><FONT size=2> (</FONT><FONT color=#0000ff size=2>int</FONT><FONT size=2> i = 0; i &lt; (</FONT><FONT color=#0000ff size=2>int</FONT><FONT size=2>)m_arrRows.GetSize(); i++)</P><P>{</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (m_arrRows.GetAt(i)-&gt;GetRecord() == pRecord)</P><P></FONT><FONT color=#0000ff size=2>return</FONT><FONT size=2> m_arrRows.GetAt(i);</P><P>}</P><P></FONT><FONT color=#0000ff size=2>return</FONT><FONT size=2> 0;</P><P>}</P></FONT>]]>
   </description>
   <pubDate>Tue, 19 Apr 2005 07:45:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2125&amp;PID=6283&amp;title=selecting-rows-in-cxtpreportcontrol-and#6283</guid>
  </item> 
  <item>
   <title><![CDATA[Selecting rows in CXTPReportC&#111;ntrol and : Hi all. I am using CXTPReportControl...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2125&amp;PID=6278&amp;title=selecting-rows-in-cxtpreportcontrol-and#6278</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1121">WilliamGS</a><br /><strong>Subject:</strong> 2125<br /><strong>Posted:</strong> 18 April 2005 at 6:54pm<br /><br /><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt; mso-paginati&#111;n: n&#111;ne; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Hi all. I am using CXTPReportControl in a CDialog class and I have some questions, please help me. This is my code:<?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt; mso-paginati&#111;n: n&#111;ne; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt; mso-paginati&#111;n: n&#111;ne; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">void COrgPropertiesDlg::OnPrMakeFam() <o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt; mso-paginati&#111;n: n&#111;ne; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">{<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt; mso-paginati&#111;n: n&#111;ne; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN style="mso-tab-count: 1"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; </SPAN>CXTPReportRecord* pFamily = Report.AddRecord(new CXTPReportRecord);<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt; mso-paginati&#111;n: n&#111;ne; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN style="mso-tab-count: 1"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; </SPAN>CXTPReportRecordItem* pItem = pFamily-&gt;AddItem(new CXTPReportRecordItemText(_T("New Family")));<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt; mso-paginati&#111;n: n&#111;ne; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN style="mso-tab-count: 1"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; </SPAN>pItem-&gt;SetEditable(TRUE);<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt; mso-paginati&#111;n: n&#111;ne; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN style="mso-tab-count: 1"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; </SPAN>pFamily-&gt;AddItem(new CXTPReportRecordItemText(_T("")));<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt; mso-paginati&#111;n: n&#111;ne; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN style="mso-tab-count: 1"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; </SPAN>pFamily-&gt;AddItem(new CXTPReportRecordItemText(_T("")));<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt; mso-paginati&#111;n: n&#111;ne; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN style="mso-tab-count: 1"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; </SPAN>Report.Populate();<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt; mso-paginati&#111;n: n&#111;ne; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">}<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt; mso-paginati&#111;n: n&#111;ne; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt; mso-paginati&#111;n: n&#111;ne; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">It works fine, but I want to do this:<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt; mso-paginati&#111;n: n&#111;ne; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt; mso-paginati&#111;n: n&#111;ne; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">1) The new record must be selected and visible, there are functions to do this:<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt; mso-paginati&#111;n: n&#111;ne; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN style="mso-tab-count: 1"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; </SPAN>CXTPReportControl::EnsureVisible(CXTPReportRow* pCheckRow);<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 5pt 0cm; mso-paginati&#111;n: n&#111;ne; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN style="mso-tab-count: 1"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; </SPAN>CXTPReportControl::GetSelectedRows()-&gt;Select(</SPAN><SPAN lang=ES-PE style="mso-ansi-: ES-PE"><FONT face="Times New Roman" size=3>CXTPReportRow* pRow</FONT></SPAN><SPAN lang=ES style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-: ES">);<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 5pt 0cm; mso-paginati&#111;n: n&#111;ne; mso-layout-grid-align: n&#111;ne"><SPAN lang=ES style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-: ES"><SPAN style="mso-tab-count: 1"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; </SPAN>But the parameter is a </SPAN><SPAN lang=ES-PE style="mso-ansi-: ES-PE"><FONT face="Times New Roman" size=3>CXTPReportRow objetct and I do not have a CXTPReportRow objetct, I have a </FONT></SPAN><SPAN lang=ES style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-: ES">CXTPReportRecord object. How can I do this?<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 5pt 0cm; mso-paginati&#111;n: n&#111;ne; mso-layout-grid-align: n&#111;ne"><SPAN lang=ES style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-: ES">2) How can I edit the label of the new CXTPReportRecordItem? (using code, not by user action).</SPAN></P><P =Ms&#111;normal style="MARGIN: 5pt 0cm; mso-paginati&#111;n: n&#111;ne; mso-layout-grid-align: n&#111;ne"><SPAN lang=ES style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-: ES"></SPAN>&nbsp;</P><P =Ms&#111;normal style="MARGIN: 5pt 0cm; mso-paginati&#111;n: n&#111;ne; mso-layout-grid-align: n&#111;ne"><SPAN lang=ES style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-: ES">Summary:</SPAN></P><P =Ms&#111;normal style="MARGIN: 5pt 0cm; mso-paginati&#111;n: n&#111;ne; mso-layout-grid-align: n&#111;ne"><SPAN lang=ES style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-: ES">The new row must be visible, selected and the first cell must be in edit mode, so the user can change the text.</SPAN></P><P =Ms&#111;normal style="MARGIN: 5pt 0cm; mso-paginati&#111;n: n&#111;ne; mso-layout-grid-align: n&#111;ne"><SPAN lang=ES style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-: ES"><o:p>&nbsp;</o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 5pt 0cm; mso-paginati&#111;n: n&#111;ne; mso-layout-grid-align: n&#111;ne"><SPAN lang=ES style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-: ES">Thanks in advance,<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 5pt 0cm; mso-paginati&#111;n: n&#111;ne; mso-layout-grid-align: n&#111;ne"><SPAN lang=ES style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-: ES">William GS<o:p></o:p></SPAN></P>]]>
   </description>
   <pubDate>Mon, 18 Apr 2005 18:54:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2125&amp;PID=6278&amp;title=selecting-rows-in-cxtpreportcontrol-and#6278</guid>
  </item> 
 </channel>
</rss>