﻿<?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 - Row Deleting Issue</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Row-Deleting-Issue/</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>Row Deleting Issue</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Row-Deleting-Issue/</link><pubDate>Wed, 29 Apr 2015 10:18:42 GMT</pubDate><dc:creator>leo.c</dc:creator><description>&lt;p&gt;Hi James,&lt;/p&gt;&lt;p&gt;I am sorry to inform you that the fix&amp;nbsp;for 'ASPNET-157'&amp;nbsp;will be delayed.&amp;nbsp;I wil give you&amp;nbsp;an update on any news I heard about 'ASPNET-157'.&lt;/p&gt;&lt;p&gt;Best Regards,&lt;br&gt;Leo&lt;br&gt;&lt;/p&gt;</description></item><item><title>Row Deleting Issue</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Row-Deleting-Issue/</link><pubDate>Mon, 27 Apr 2015 17:13:28 GMT</pubDate><dc:creator>JamesM</dc:creator><description>&lt;p&gt;Hello Leo,&lt;/p&gt;&lt;p&gt;It is nearing the end of April and I would like to know if the fix will be released soon, If not, could I get a more accurate estimate.&lt;/p&gt;&lt;p&gt;Regards,&lt;/p&gt;&lt;p&gt;James&lt;/p&gt;</description></item><item><title>Row Deleting Issue</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Row-Deleting-Issue/</link><pubDate>Thu, 26 Mar 2015 07:46:11 GMT</pubDate><dc:creator>leo.c</dc:creator><description>&lt;p&gt;Hi James,&lt;/p&gt;&lt;p&gt;Please expect a fix for this issue to be ready before the end of April.&lt;/p&gt;&lt;p&gt;Best Regards,&lt;br&gt;Leo&lt;/p&gt;</description></item><item><title>Row Deleting Issue</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Row-Deleting-Issue/</link><pubDate>Wed, 25 Mar 2015 20:18:08 GMT</pubDate><dc:creator>JamesM</dc:creator><description>&lt;p&gt;Hi Leo,&lt;/p&gt;&lt;p&gt;Could you possibly give me a timeline for this fix?&lt;/p&gt;&lt;p&gt;Regards,&lt;/p&gt;&lt;p&gt;James&lt;/p&gt;</description></item><item><title>Row Deleting Issue</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Row-Deleting-Issue/</link><pubDate>Wed, 25 Mar 2015 04:25:15 GMT</pubDate><dc:creator>leo.c</dc:creator><description>&lt;p&gt;Hi James,&lt;/p&gt;&lt;p&gt;Thanks for your information. I have report this to WebGrid development team under 'ASPNET-157'. I will get back at you if there is an update.&lt;/p&gt;&lt;p&gt;Regards,&lt;br&gt;Leo&lt;/p&gt;</description></item><item><title>Row Deleting Issue</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Row-Deleting-Issue/</link><pubDate>Tue, 24 Mar 2015 13:13:50 GMT</pubDate><dc:creator>JamesM</dc:creator><description>&lt;p&gt;Hi Leo,&lt;/p&gt;&lt;p&gt;Thanks for helping with this so far, and I have one last request. If you could please try again to reproduce this issue, but instead delete the top row first, then the bottom row second.&lt;/p&gt;&lt;p&gt;It seems I was incorrect before as the second last row does not cause the issue. It seems that the issue happens when any row 2 or more above the bottom row is deleted before the bottom.&lt;/p&gt;&lt;p&gt;Regards,&lt;/p&gt;&lt;p&gt;James&lt;/p&gt;</description></item><item><title>Row Deleting Issue</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Row-Deleting-Issue/</link><pubDate>Tue, 24 Mar 2015 10:02:31 GMT</pubDate><dc:creator>leo.c</dc:creator><description>&lt;p&gt;Hi James,&lt;/p&gt;&lt;p&gt;I have re-upload the video. Please find the video on attachment.&lt;/p&gt;&lt;p&gt;FYI, The only changes that has been made to your project was the connection string to the database.&lt;/p&gt;&lt;p&gt;Best Regards,&lt;br&gt;Leo&lt;/p&gt;</description></item><item><title>Row Deleting Issue</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Row-Deleting-Issue/</link><pubDate>Mon, 23 Mar 2015 13:24:07 GMT</pubDate><dc:creator>JamesM</dc:creator><description>&lt;p&gt;Hi Leo,&lt;/p&gt;&lt;p&gt;Unfortunately the video seems to have been corrupted so I cannot view it. If you could reupload it that would be quite helpful.&lt;/p&gt;&lt;p&gt;I would like to know if you used VB code for the testing or if you translated it into C#? Also could you tell me what other changes had to be made to the project in order for it to run? Perhaps you could upload your copy as well as I would like to make sure it is a close to my current code as possible to give an accurate test.&lt;/p&gt;&lt;p&gt;Regards,&lt;/p&gt;&lt;p&gt;James&lt;/p&gt;</description></item><item><title>Row Deleting Issue</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Row-Deleting-Issue/</link><pubDate>Tue, 17 Mar 2015 02:29:12 GMT</pubDate><dc:creator>leo.c</dc:creator><description>&lt;p&gt;Hi James,&lt;/p&gt;&lt;p&gt;Sorry for the delay. I have test the sample you have share with slight modification to fit my environment. The following are the step I used in my test:&lt;/p&gt;&lt;p&gt;&lt;ol&gt;&lt;li&gt;Restore the database backup to sql server&lt;/li&gt;&lt;li&gt;Modified the connection string.&lt;/li&gt;&lt;li&gt;Run the sample on Internet Explorer&lt;/li&gt;&lt;li&gt;Delete a row above the bottom one&lt;/li&gt;&lt;li&gt;Delete bottom row.&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;Unfortunately I could not replicate your issue. The row was deleted successfully. I have attach the test record video. Please review it and inform me on anything that I may miss during my test.&lt;br&gt;&lt;br&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;Best Regards,&lt;br&gt;Leo&lt;/p&gt;</description></item><item><title>Row Deleting Issue</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Row-Deleting-Issue/</link><pubDate>Thu, 12 Mar 2015 14:39:20 GMT</pubDate><dc:creator>JamesM</dc:creator><description>&lt;p&gt;Hi Leo,&lt;/p&gt;&lt;p&gt;I have tested your sample, but it does not fix my problem, and adding the Grid.ClientAction.Refresh() code is not feasible as this fix is being made to a current application which didn't have this problem prior to version 8 of the WebGrid.&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;Here is a link to a sample project and database which contains the error I described earlier:&amp;nbsp;&lt;/span&gt;&lt;a href="https://www.dropbox.com/s/vuyas3mikkv3d4s/WebGridTest.zip?dl=0" target="_blank"&gt;https://www.dropbox.com/s/vuyas3mikkv3d4s/WebGridTest.zip?dl=0&lt;/a&gt;&amp;nbsp;&lt;span style="font-size: 10pt;"&gt;.&amp;nbsp;&lt;/span&gt;&lt;span style="font-size: 10pt;"&gt;The steps to reproduce are exactly as follows:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;1. Delete any row above the bottom.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;2. Delete the bottom row.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;This will cause a NullReferenceException as it does on my project. As I stated earlier this should not happen as the code for my project has not changed, but the WebGrid is acting completely differently between version 7 without the issue and version 8.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;Regards,&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;James&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Row Deleting Issue</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Row-Deleting-Issue/</link><pubDate>Wed, 11 Mar 2015 15:49:04 GMT</pubDate><dc:creator>JamesM</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;I have recently noticed that whenever I delete a row from my grid, the grid is not automatically refreshed, but the row is removed which causes the grid to confuse data and any subsequent rows deleted may delete an unintended row instead.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;This can be replicated when the grid has 3 or more rows and any row above the bottom one is deleted. After one row is deleted, the rows below it will be incorrect and when called to be deleted will attempt to delete a row which was not intended.&amp;nbsp;&lt;/span&gt;&lt;span style="font-size: 10pt;"&gt;If the bottom row is deleted after any other, then it throws a NullReferenceException instead.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;The code to initialize the grid and delete rows is as follows:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;&lt;br&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Private Sub Users_InitializeDataSource(sender As Object, e As ISNet.WebUI.WebGrid.DataSourceEventArgs) Handles Users.InitializeDataSource&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; e.DataSource = DA.ExecuteDataView(CommandType.Text, "SELECT * FROM TestTable")&lt;/p&gt;&lt;p&gt;End Sub&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;&lt;br&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;Protected Sub Users_DeleteRow(sender As Object, e As ISNet.WebUI.WebGrid.RowEventArgs) Handles Users.DeleteRow&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim code As Byte = CByte(e.Row.KeyValue)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DA.ExecuteNonQuery(CommandType.Text, String.Format("DELETE FROM TestTable WHERE Id = {0}", code))&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;End Sub&lt;/span&gt;&lt;/p&gt;</description></item></channel></rss>