<?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 : Several bugs in grouped control</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Several bugs in grouped control]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 04 Jun 2026 04:41:35 +0000</pubDate>
  <lastBuildDate>Sun, 24 Jan 2016 15:19:25 +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=22579</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[Several bugs in grouped control : We delete flagged records on a...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22579&amp;PID=74368&amp;title=several-bugs-in-grouped-control#74368</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2967">adrien</a><br /><strong>Subject:</strong> 22579<br /><strong>Posted:</strong> 24 January 2016 at 3:19pm<br /><br />We delete flagged records on a timer, so not deleting selected rows at all. &nbsp;This is so dead records can hang around for a while before disappearing so that fast adds and deletes still are visible. &nbsp;I don't believe this is contributing to the problem though.<div><div><br></div><div>We call RemoveRecordEx</div><div><br></div><div>RemoveRowEx just calls through to that anyway.</div><div><br></div><div>I've looked through the CJ source on this, and it's not clear yet why it's happening. &nbsp;It looks to delete row objects when you remove a record, so you'd think the other unaffected rows would keep the selected attribute (actually there is none, this is stored in a separate array of pointers to row objects).</div><div><br></div><div>It only affects selected rows below the deleted row.</div><div><br></div><div>It's like there's another array of rows that is just used for drawing, and that is the one that keeps the flag that makes it draw with the blue background.</div><div><br></div><div>I never tried this on 16.x, maybe it wasn't broken in that version.</div><div><br></div></div>]]>
   </description>
   <pubDate>Sun, 24 Jan 2016 15:19:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22579&amp;PID=74368&amp;title=several-bugs-in-grouped-control#74368</guid>
  </item> 
  <item>
   <title><![CDATA[Several bugs in grouped control : How are you deleting a non-selected...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22579&amp;PID=74353&amp;title=several-bugs-in-grouped-control#74353</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2657">Algae</a><br /><strong>Subject:</strong> 22579<br /><strong>Posted:</strong> 21 January 2016 at 9:49pm<br /><br />How are you deleting a non-selected row? I tried with a multi-user system where a row is deleted by another user. In my test, it retained the group selection on the other user's list correctly.<br><br>I probably use a process similar to yours. I track the index of the deleted row(s), however. I also test to see if the row has an associated record. I believe group rows do not.<br><br>Example in "delete" method:<br><br>&nbsp;&nbsp;&nbsp; CXTPReportSelectedRows* pSelectedRows = GetReportCtrl().GetSelectedRows();<br><br>// make sure pSelectedRows exists... then do this:<br><br>&nbsp;&nbsp;&nbsp; INT_PTR rowCount = pSelectedRows-&gt;GetCount();<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; while (rowCount--)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; POSITION pos = pSelectedRows-&gt;GetFirstSelectedRowPosition();<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pRow = pSelectedRows-&gt;GetNextSelectedRow(pos);<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (!pRow || !pRow-&gt;GetRecord())<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; continue;<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; // get marker for scroll position<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; index = pRow-&gt;GetIndex();<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; VERIFY(GetReportCtrl().RemoveRowEx(pRow, FALSE));<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; };<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; // move selection to next row if possible<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pRow = GetReportCtrl().GetRows()-&gt;GetAt(index);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if ( pRow )<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; GetReportCtrl().SetFocusedRow(pRow);<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; GetReportCtrl().AdjustScrollBars();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; GetReportCtrl().RedrawControl();<br><br>*this is using v. 16.26. I'm still hacking away at 17 so haven't tried that yet. With any luck, this may offer you a solution.<br>]]>
   </description>
   <pubDate>Thu, 21 Jan 2016 21:49:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22579&amp;PID=74353&amp;title=several-bugs-in-grouped-control#74353</guid>
  </item> 
  <item>
   <title><![CDATA[Several bugs in grouped control : Hi. This is still a problem in...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22579&amp;PID=74352&amp;title=several-bugs-in-grouped-control#74352</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2967">adrien</a><br /><strong>Subject:</strong> 22579<br /><strong>Posted:</strong> 21 January 2016 at 9:12pm<br /><br />Hi. &nbsp;This is still a problem in 17, and I don't think it can be adequately fixed by me manually adjusting selected rows on every delete.<div><br></div><div>the problem is that we use grouping. &nbsp;If a group header row is selected, then a row above that is deleted, then the group header row is no longer selected, instead it's the first child row.</div><div><br></div><div>Since we don't have any record associated with the header row, we have nowhere to store the selected state, so no way to reinstate the correct state.</div><div><br></div><div>You guys really should just fix this, when a row is moved by deletion of a row above, the selection state of the row should move with it. &nbsp;If a group header row moves location, so should its selection state. &nbsp;Doing this afterwards is going to be buggy, and non-performant.</div>]]>
   </description>
   <pubDate>Thu, 21 Jan 2016 21:12:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22579&amp;PID=74352&amp;title=several-bugs-in-grouped-control#74352</guid>
  </item> 
  <item>
   <title><![CDATA[Several bugs in grouped control : actually ignore that comment about...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22579&amp;PID=73653&amp;title=several-bugs-in-grouped-control#73653</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2967">adrien</a><br /><strong>Subject:</strong> 22579<br /><strong>Posted:</strong> 16 July 2015 at 6:47pm<br /><br />actually ignore that comment about key up.]]>
   </description>
   <pubDate>Thu, 16 Jul 2015 18:47:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22579&amp;PID=73653&amp;title=several-bugs-in-grouped-control#73653</guid>
  </item> 
  <item>
   <title><![CDATA[Several bugs in grouped control : what it looks like, is that you...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22579&amp;PID=73652&amp;title=several-bugs-in-grouped-control#73652</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2967">adrien</a><br /><strong>Subject:</strong> 22579<br /><strong>Posted:</strong> 16 July 2015 at 6:45pm<br /><br />what it looks like, is that you attach the bSelected flag to the ROW rather than the RECORD, and you re-assign records to different rows when records are added and deleted without updating this flag.<div><br></div><div>Adrien</div>]]>
   </description>
   <pubDate>Thu, 16 Jul 2015 18:45:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22579&amp;PID=73652&amp;title=several-bugs-in-grouped-control#73652</guid>
  </item> 
  <item>
   <title><![CDATA[Several bugs in grouped control : p.s. it still seems to know where...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22579&amp;PID=73651&amp;title=several-bugs-in-grouped-control#73651</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2967">adrien</a><br /><strong>Subject:</strong> 22579<br /><strong>Posted:</strong> 16 July 2015 at 6:42pm<br /><br />p.s. it still seems to know where the cursor is, because when I arrow up, it comes up from the place where the blue selection should have been.<div><br></div><div>This problem occurs on both insert and delete</div>]]>
   </description>
   <pubDate>Thu, 16 Jul 2015 18:42:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22579&amp;PID=73651&amp;title=several-bugs-in-grouped-control#73651</guid>
  </item> 
  <item>
   <title><![CDATA[Several bugs in grouped control : HIfor insert we use ReportControl...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22579&amp;PID=73650&amp;title=several-bugs-in-grouped-control#73650</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2967">adrien</a><br /><strong>Subject:</strong> 22579<br /><strong>Posted:</strong> 16 July 2015 at 6:40pm<br /><br />HI<div><br></div><div>for insert we use ReportControl methods</div><div><br></div><div><div><span ="Apple-tab-span" style="white-space:pre">	</span>BeginUpdate();</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>AddRecordEx(pRecord);</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>EndUpdate();</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>AdjustScrollBars();</div></div><div><span style="line-height: 1.4;"><br></span></div><div><span style="line-height: 1.4;">for delete we do</span></div><div><br></div><div><div><span ="Apple-tab-span" style="white-space:pre">	</span>BeginUpdate();</div><div><span ="Apple-tab-span" style="line-height: 1.4; white-space: pre;">	</span><span style="line-height: 1.4;">RemoveRecordEx(pRecord, TRUE);</span></div><div><span ="Apple-tab-span" style="line-height: 1.4; white-space: pre;">	</span><span style="line-height: 1.4;">EndUpdate();</span></div><div><span ="Apple-tab-span" style="white-space:pre">	</span>AdjustScrollBars();</div></div><div><br></div><div>Adrien</div><div><br></div>]]>
   </description>
   <pubDate>Thu, 16 Jul 2015 18:40:50 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22579&amp;PID=73650&amp;title=several-bugs-in-grouped-control#73650</guid>
  </item> 
  <item>
   <title><![CDATA[Several bugs in grouped control : Hi adrien,What code do you use...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22579&amp;PID=73648&amp;title=several-bugs-in-grouped-control#73648</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8730">olebed</a><br /><strong>Subject:</strong> 22579<br /><strong>Posted:</strong> 16 July 2015 at 4:52pm<br /><br />Hi adrien,<br><br>What code do you use to reproduce this behavior ?<br><br>CXTPReportRecords::Add, RemoveAt, RemoveRecord, InsertAt &nbsp;and other don't take into account selected rows. To keep selection you need to reselect. For example see using CXTPReportControl::m_bKeepSelectionAfterSort in CXTPReportHeader::OnLButtonUp() method.<br>]]>
   </description>
   <pubDate>Thu, 16 Jul 2015 16:52:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22579&amp;PID=73648&amp;title=several-bugs-in-grouped-control#73648</guid>
  </item> 
  <item>
   <title><![CDATA[Several bugs in grouped control : Hi OleksandrI just installed 17...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22579&amp;PID=73646&amp;title=several-bugs-in-grouped-control#73646</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2967">adrien</a><br /><strong>Subject:</strong> 22579<br /><strong>Posted:</strong> 16 July 2015 at 2:48pm<br /><br /><span style="line-height: 16.7999992370605px; : rgb248, 248, 252;">Hi Oleksandr</span><div><span style="line-height: 16.7999992370605px; : rgb248, 248, 252;"><br></span></div><div><span style="line-height: 16.7999992370605px; : rgb248, 248, 252;">I just installed 17 beta 1 and recompiled all our code for it. &nbsp;The report control is a great deal better, but there is still 1 bug I can see.</span></div><div><span style="line-height: 16.7999992370605px; : rgb248, 248, 252;"><br></span></div><div><span style="line-height: 16.7999992370605px; : rgb248, 248, 252;">If you have a row selected, then insert or delete a row above this selected row, then the blue selection shifts to a different record. &nbsp;More precisely, the blue selection row stays visually at the same screen location while the records move underneath, so the selected record appears to be different.</span></div><div><span style="line-height: 16.7999992370605px; : rgb248, 248, 252;"><br></span></div><div><span style="line-height: 16.7999992370605px; : rgb248, 248, 252;">Keyboard navigation is a LOT better, thanks!</span></div><div><span style="line-height: 16.7999992370605px; : rgb248, 248, 252;"><br></span></div><div><span style="line-height: 16.7999992370605px; : rgb248, 248, 252;">Thanks</span></div><div><span style="line-height: 16.7999992370605px; : rgb248, 248, 252;"><br>Adrien&nbsp;</span></div>]]>
   </description>
   <pubDate>Thu, 16 Jul 2015 14:48:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22579&amp;PID=73646&amp;title=several-bugs-in-grouped-control#73646</guid>
  </item> 
  <item>
   <title><![CDATA[Several bugs in grouped control : Hi Oleksandrthanks for that, I&amp;#039;ll...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22579&amp;PID=73546&amp;title=several-bugs-in-grouped-control#73546</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2967">adrien</a><br /><strong>Subject:</strong> 22579<br /><strong>Posted:</strong> 24 June 2015 at 6:11am<br /><br />Hi Oleksandr<div><br></div><div>thanks for that, I'll be sure to let you know.</div><div><br></div><div>Regards</div><div><br>Adrien</div>]]>
   </description>
   <pubDate>Wed, 24 Jun 2015 06:11:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22579&amp;PID=73546&amp;title=several-bugs-in-grouped-control#73546</guid>
  </item> 
 </channel>
</rss>