﻿<?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 - Lounge - Delete a Row Using UndoChanges ()  When WebGrid.AcceptAllChanges()  problem occurs</title><link>http://www.intersoftsolutions.com/Community/Lounge/Delete-a-Row-Using-UndoChanges--When-WebGridAcceptAllChanges-problem-occurs/</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 a Row Using UndoChanges ()  When WebGrid.AcceptAllChanges()  problem occurs</title><link>http://www.intersoftsolutions.com/Community/Lounge/Delete-a-Row-Using-UndoChanges--When-WebGridAcceptAllChanges-problem-occurs/</link><pubDate>Thu, 05 May 2011 04:57:14 GMT</pubDate><dc:creator>Riendy</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;This error occurs when WebGrid could not bind the data. There are some mistakes when bind the data :&lt;/p&gt;
&lt;p&gt;1. Select query to bind data into WebGrid got an error.&lt;/p&gt;
&lt;p&gt;You can check Execute query on query builder. Please follow this steps to checking :&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;Right click on AccessDataSource1 then select Configure Data Source...&lt;/li&gt;&lt;li&gt;Then select next twice.&lt;/li&gt;&lt;li&gt;Click on button Query Builder... to execute query. (There will show you an error message)&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;2. Display structure on WebGrid did not match with data in AccessDataControl1&lt;/p&gt;
&lt;p&gt;   You makes 8 column in WebGrid which is doesn't exist in AccessDataControl1. There are Quantity, Discount, TotalMoney, and OrderID in your display structure.&lt;/p&gt;
&lt;p&gt;Because of this mistaken, there is no database that bound, so WebGrid has return null and cannot use any FlyPostBack request.&lt;/p&gt;
&lt;p&gt;I have modified your sample and using AccessDataSource2. you can check on my attachment.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Please do not hestitate to ask if you still have a question.&lt;/p&gt;
&lt;p&gt;Riendy&lt;/p&gt;</description></item><item><title>Delete a Row Using UndoChanges ()  When WebGrid.AcceptAllChanges()  problem occurs</title><link>http://www.intersoftsolutions.com/Community/Lounge/Delete-a-Row-Using-UndoChanges--When-WebGridAcceptAllChanges-problem-occurs/</link><pubDate>Wed, 04 May 2011 22:54:38 GMT</pubDate><dc:creator>zz_mmcxl</dc:creator><description>&lt;p&gt;hello   Riendy Setiadi, Thank you very much for you answer. The follow attachement is my project code. In which it show how how i bind the webgrid and update it!&lt;/p&gt;</description></item><item><title>Delete a Row Using UndoChanges ()  When WebGrid.AcceptAllChanges()  problem occurs</title><link>http://www.intersoftsolutions.com/Community/Lounge/Delete-a-Row-Using-UndoChanges--When-WebGridAcceptAllChanges-problem-occurs/</link><pubDate>Wed, 04 May 2011 21:46:17 GMT</pubDate><dc:creator>Riendy</dc:creator><description>&lt;span class="Apple-style-span" style="widows: 2; text-transform: none; text-indent: 0px; letter-spacing: normal; border-collapse: separate; font: medium 'times new roman'; white-space: normal; orphans: 2; color: rgb(0,0,0); word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"&gt;&lt;span class="Apple-style-span" style="line-height: 15px; font-family: arial, helvetica, clean, sans-serif; font-size: 13px"&gt;
&lt;table style="line-height: 1.2em; outline-style: none; display: table; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px" border="0" cellspacing="0" cellpadding="0"&gt;&lt;tbody style="line-height: 1.2em; outline-style: none"&gt;
&lt;tr style="line-height: 1.2em; outline-style: none; display: table-row; vertical-align: inherit"&gt;&lt;td valign="top" style="line-height: 1.2em; outline-style: none; display: table-cell; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;
&lt;p&gt;Hello,&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;
&lt;p&gt;This error usually happens because WebGrid get a timeout when connecting to server. The other possibilities are because useing unbound. In unbound mode, this error will show everytime you use FlyPostBack request such as sorting, refresh, accept changes, etc.&lt;/p&gt;
&lt;p&gt;Could you please let me know how do you bind your WebGrid and how do you handle the update process?&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Delete a Row Using UndoChanges ()  When WebGrid.AcceptAllChanges()  problem occurs</title><link>http://www.intersoftsolutions.com/Community/Lounge/Delete-a-Row-Using-UndoChanges--When-WebGridAcceptAllChanges-problem-occurs/</link><pubDate>Tue, 03 May 2011 00:15:34 GMT</pubDate><dc:creator>zz_mmcxl</dc:creator><description>&lt;p&gt;in my program ! first I Add three Row to the webgrid, and then delete a row  use  UndoChanges (); &lt;br /&gt;Last grid.AcceptAllChanges (); &lt;/p&gt;
&lt;p&gt;Tip mistake: Unhandled exception. Unable to communicate with server. &lt;br /&gt;Looking for a long time because I still do not know how to solve ,if you know please tell me ,thanks&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>