﻿<?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 - Webgrid 7 Delete row and refresh right after fails</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Webgrid-7-Delete-row-and-refresh-right-after-fails/</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>Webgrid 7 Delete row and refresh right after fails</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Webgrid-7-Delete-row-and-refresh-right-after-fails/</link><pubDate>Tue, 26 Jan 2010 02:51:31 GMT</pubDate><dc:creator>Glayaar</dc:creator><category>webgrid7 delete row refresh fail</category><description>&lt;p&gt;Based on the given snippet, I suspect the deletion is only done on the WebGrid object level not on the database level. When you refresh, the WebGrid will load the data from the database again which will show the deleted WebGrid data since it was not deleted from the database.&lt;/p&gt;&lt;p&gt;Attach is a simple sample of the scenario you wish to achieve, during the Add, Update, and Delete WebGrid event handler the data operation is done to the database. The sample will require dsNorthwind.xsd which already supplied in the WebGrid sample&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Webgrid 7 Delete row and refresh right after fails</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Webgrid-7-Delete-row-and-refresh-right-after-fails/</link><pubDate>Fri, 22 Jan 2010 10:04:12 GMT</pubDate><dc:creator>supporti-track.pmi@pmintl.com</dc:creator><category>webgrid7 delete row refresh fail</category><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;We have an issue with delete method. We use a custom delete&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;&lt;pre&gt;void wg_DeleteRow(object sender, ISNet.WebUI.WebGrid.RowEventArgs e)

{

	var myObject= (MyObject)e.Row.GetObjectRow();

	myObject.Delete();

	e.ReturnValue = false

}

&lt;/pre&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;  &lt;p&gt;The delete works well, and remove the object from the webgrid.&lt;/p&gt;&lt;p&gt;But If I do a refresh right after the deletion, the deleted object re-appears !&lt;/p&gt;&lt;p&gt;Other problem : if I add a new object, the &lt;span style="font-size: 13px"&gt;wg.ClientAction.Refresh(); method doesn't show the new object.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 13px"&gt;Here is the datasource :&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&amp;lt;ISDataSource:ISDataSource ID="ids" runat="server"&amp;gt;
        &amp;lt;Tables&amp;gt;
            &amp;lt;ISDataSource:ISDataSourceTable
                SelectMethod="GetData" 
                SelectCountMethod="GetCount"
                TableName="table" 
                TypeName="MyType" 
                EnablePaging="true"&amp;gt;
            &amp;lt;/ISDataSource:ISDataSourceTable&amp;gt;
        &amp;lt;/Tables&amp;gt;
    &amp;lt;/ISDataSource:ISDataSource&amp;gt;&lt;/pre&gt;&lt;/span&gt;</description></item></channel></rss>