﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebGrid Enterprise - DeleteRow</title><link>http://www.intersoftsolutions.com/Community/WebGrid/DeleteRow/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>DeleteRow</title><link>http://www.intersoftsolutions.com/Community/WebGrid/DeleteRow/</link><pubDate>Tue, 22 Dec 2009 04:04:52 GMT</pubDate><dc:creator>yudi</dc:creator><category>Delete row</category><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;In order to delete second row, when another row is deleted on the DeleteRow server side event, please try to do following.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Run &lt;strong&gt;InvokeScript&lt;/strong&gt; method from DeleteRow server side event.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;protected void WebGrid1_DeleteRow(object sender, ISNet.WebUI.WebGrid.RowEventArgs e)
{
    if (e.Row.Cells[1].Text == "UnitedPackage")
    {
        WebGrid1.ClientAction.&lt;span style="color: #c00000"&gt;InvokeScript("DeleteNextRow();")&lt;/span&gt;;
    }
}&lt;/pre&gt;

&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Delete row from the invoked script function.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&amp;lt;script type="text/javascript"&amp;gt;
    &amp;lt;!--
    function DeleteNextRow() {
        var WebGrid1 = ISGetObject("WebGrid1");
        WebGrid1.GetSelectedObject().GetRowObject().Delete();
            
        return true;
    }
    --&amp;gt;
&amp;lt;/script&amp;gt;&lt;/pre&gt;
</description></item><item><title>DeleteRow</title><link>http://www.intersoftsolutions.com/Community/WebGrid/DeleteRow/</link><pubDate>Mon, 21 Dec 2009 22:35:42 GMT</pubDate><dc:creator>ehanig@extendemail.com</dc:creator><category>Delete row</category><description>&lt;p&gt;Still no response, we are petty desperate to know how to do this.&lt;/p&gt;</description></item><item><title>DeleteRow</title><link>http://www.intersoftsolutions.com/Community/WebGrid/DeleteRow/</link><pubDate>Fri, 18 Dec 2009 15:14:17 GMT</pubDate><dc:creator>ehanig@extendemail.com</dc:creator><category>Delete row</category><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;On the server side DeleteRow, i need to delete a second row, when another row is deleted.  These rows are at the same level.  So when i delete a row in the DeleteRow server side call, i need to also delete another row.  However, its not showing on the client when i try.&lt;/p&gt;
&lt;p&gt;I have tried:&lt;/p&gt;&lt;span style="font-size: 13px"&gt;((&lt;/span&gt;&lt;span style="color: #2b91af; font-size: 13px"&gt;&lt;span style="color: #2b91af; font-size: 13px"&gt;DataRowView&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;)e.Row.Grid.RootTable.Rows[j].DataRow).Row.Delete();&lt;/span&gt; 

&lt;p&gt;&lt;span style="font-size: 13px"&gt;and&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size: 13px"&gt;&lt;span style="font-size: 13px"&gt;
&lt;p&gt;e.Row.Grid.RootTable.Rows.Remove(e.Row.Grid.RootTable.Rows[j]);&lt;/p&gt;
&lt;p&gt;Neither throw an error, but the row still shows on the client.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Eric&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;</description></item></channel></rss>