<?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 : Deleting Rows?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Deleting Rows?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 02 May 2026 00:12:10 +0000</pubDate>
  <lastBuildDate>Mon, 08 Aug 2005 15:59:02 +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=2703</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[Deleting Rows? : Ah, nevermind I figured out how...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2703&amp;PID=8061&amp;title=deleting-rows#8061</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1384">VivantL</a><br /><strong>Subject:</strong> 2703<br /><strong>Posted:</strong> 08 August 2005 at 3:59pm<br /><br /><P>Ah, nevermind I figured out how to do it. </P><P>I just needed to use&nbsp;axReportControl1.SelectedRows<em>.Record.Index</P><P>Sorry about that!<FONT size=2></P></FONT>]]>
   </description>
   <pubDate>Mon, 08 Aug 2005 15:59:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2703&amp;PID=8061&amp;title=deleting-rows#8061</guid>
  </item> 
  <item>
   <title><![CDATA[Deleting Rows? : I&amp;#039;m having trouble figuring...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2703&amp;PID=8059&amp;title=deleting-rows#8059</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1384">VivantL</a><br /><strong>Subject:</strong> 2703<br /><strong>Posted:</strong> 08 August 2005 at 2:48pm<br /><br /><P>I'm having trouble figuring out how to delete rows from a Report that has been sorted / <FONT face="Arial, Helvetica, sans-serif">has</FONT> groups enabled.</P><P>Currently my code looks like this:</P><P><table width="99%"><tr><td><pre class="BBcode"></P><FONT color=#0000ff size=2><P>private</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>void</FONT><FONT size=2> axReportControl1_KeyDownEvent(</FONT><FONT color=#0000ff size=2>object</FONT><FONT size=2> sender, AxXtremeReportControl._DReportControlEvents_KeyDownEvent e)</P><P>{</P></FONT><FONT color=#0000ff size=2><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><P>if</FONT><FONT size=2> (e.keyCode == 46)</P><P>{</FONT><FONT size=2></P><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><P></FONT><FONT color=#0000ff size=2>for</FONT><FONT size=2> (</FONT><FONT color=#0000ff size=2>int</FONT><FONT size=2> i = axReportControl1.SelectedRows.Count - 1; i &gt;= 0; i--)</P><P>{</P><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><P> axReportControl1.Records.RemoveAt(axReportControl1.SelectedR ows.Index);</P></BLOCKQUOTE><P>}</P><P>axReportControl1.Populate();</P></BLOCKQUOTE><P>}</P></BLOCKQUOTE><P>}</P><P></pre></td></tr></table></P><P>This works just fine if the list has not been sorted. However, if the list is sorted then the indexes returned by SelectedRows do not match the internal representation in the list and the wrong rows are deleted. Is there a method to work around this? In the standard ListView the rows correspond to each other. </P><P>Thanks!</P></FONT><span style="font-size:10px"><br /><br />Edited by VivantL</span>]]>
   </description>
   <pubDate>Mon, 08 Aug 2005 14:48:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2703&amp;PID=8059&amp;title=deleting-rows#8059</guid>
  </item> 
 </channel>
</rss>