﻿<?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 - Delete row functionality does not appear to be work </title><link>http://www.intersoftsolutions.com/Community/WebGrid/Delete-row-functionality-does-not-appear-to-be-work/</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>Delete row functionality does not appear to be work </title><link>http://www.intersoftsolutions.com/Community/WebGrid/Delete-row-functionality-does-not-appear-to-be-work/</link><pubDate>Tue, 05 Apr 2011 04:53:03 GMT</pubDate><dc:creator>lili</dc:creator><category>MSI</category><description>&lt;p&gt;Hi Peter,&lt;/p&gt;
&lt;p&gt;If you don't use the datasource control, you need to handle the add, update and delete on your own.  Here's I give you a sample.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Hope it helps.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Lili Khiung&lt;/p&gt;</description></item><item><title>Delete row functionality does not appear to be work </title><link>http://www.intersoftsolutions.com/Community/WebGrid/Delete-row-functionality-does-not-appear-to-be-work/</link><pubDate>Mon, 04 Apr 2011 07:29:59 GMT</pubDate><dc:creator>petej</dc:creator><category>MSI</category><description>&lt;p&gt;Surely you do not need to used the datasource control.&lt;/p&gt;
&lt;p&gt;All your samples are hard coded datasource controls coded in the aspx page so not very helpful for my situation.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Fortunately with some digging i found out somebody else had the same issue and this solution seems to work.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.intersoftpt.com/Community/WebGrid/Error-after-DeleteRow-event---Cannot-perform-this-operation-on-a-row-not-in-a-table/"&gt;http://www.intersoftpt.com/Community/WebGrid/Error-after-DeleteRow-event---Cannot-perform-this-operation-on-a-row-not-in-a-table/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I still think is is odd that the rowstate for the data row is updated when the  updateRow event is fired but not when the DeleteRow event is fired.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Peter&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item><item><title>Delete row functionality does not appear to be work </title><link>http://www.intersoftsolutions.com/Community/WebGrid/Delete-row-functionality-does-not-appear-to-be-work/</link><pubDate>Mon, 04 Apr 2011 02:34:38 GMT</pubDate><dc:creator>lili</dc:creator><category>MSI</category><description>&lt;p&gt;Hi Peter,&lt;/p&gt;
&lt;p&gt;From the WebGrid 3.5 to the latest WebGrid version, there are many breaking changes. In WebGrid 7, the binding process is automatic through the datasource control and the delete event is automatically handled by the datasource to the database. I suggest you to update to the latest version and see our AllowDeleting sample.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Hope it helps.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Lili Khiung&lt;/p&gt;</description></item><item><title>Delete row functionality does not appear to be work </title><link>http://www.intersoftsolutions.com/Community/WebGrid/Delete-row-functionality-does-not-appear-to-be-work/</link><pubDate>Fri, 01 Apr 2011 12:29:48 GMT</pubDate><dc:creator>petej</dc:creator><category>MSI</category><description>&lt;p&gt;Hi &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;i have code in the deleterow event to persist the changes back to the database.&lt;/p&gt;
&lt;p&gt;althrough the row is removed from the grid the changes are not getting back to the database.&lt;/p&gt;
&lt;p&gt;On investigation is appear that the rowstate property of the data row has not been changed.&lt;/p&gt;
&lt;p&gt;i.e  rowstate = no change   where is should be marked as deleted.&lt;/p&gt;
&lt;p&gt;(therefore not removed from the database)&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;if performing an edit  the editrow event is firing and the rowstate is marked as changed.&lt;/p&gt;
&lt;p&gt;and works as expected. the database is updated.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;why is the rowstate not being marked up in the delete row event?&lt;/p&gt;
&lt;p&gt;Am i looking at the wrong event.&lt;/p&gt;
&lt;p&gt;Note this worked fine in webgrid 3.5.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;can you direct me in the right direction if i'm looking in the wrong place.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Peter&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item></channel></rss>