﻿<?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 - Processing WebGrid field changes on a button click</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Processing-WebGrid-field-changes-on-a-button-click/</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>Processing WebGrid field changes on a button click</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Processing-WebGrid-field-changes-on-a-button-click/</link><pubDate>Thu, 17 Sep 2009 01:13:38 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;In your sample, i didn't see anything can get updated value or something so I modified my previous sample. I added WebButton "OK". On this button, I get the cache data. Please run my attached sample and try to change 'ContactName' column.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>Processing WebGrid field changes on a button click</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Processing-WebGrid-field-changes-on-a-button-click/</link><pubDate>Wed, 16 Sep 2009 13:59:10 GMT</pubDate><dc:creator>darlene.demaio</dc:creator><description>&lt;p&gt;Hi James,&lt;/p&gt;
&lt;p&gt;We are using WebGrid 6.07200.211.   We cannot upgrade to WebGrid 7 at this time.  I need to know how to do this with the version of WebGrid we are currently working with.  Can you tell me what code changes/additons I need to make in the code I sent you.  &lt;/p&gt;
&lt;p&gt;Remember I don't need to be able to "save" the changes on the button click, just get the new values of the Quantity cells into program variables.  If the collection returned by grid.GetChanges() is the answer, please show me how to get those text values using it.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Darlene&lt;/p&gt;</description></item><item><title>Processing WebGrid field changes on a button click</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Processing-WebGrid-field-changes-on-a-button-click/</link><pubDate>Wed, 16 Sep 2009 11:47:53 GMT</pubDate><dc:creator>james</dc:creator><description>&lt;p&gt;Hi Darlene,&lt;/p&gt;&lt;p&gt;WebGrid 7 includes built-support for this scenario, which is called batch update. Check out the feature &lt;a href="http://www.intersoftpt.com/WebGrid/SmartBatchUpdate" target="_blank"&gt;here&lt;/a&gt;. I think the batch update feature will really save your time if you need a solid batch editing capability (multiple edits and then save in one request).&lt;/p&gt;
&lt;p&gt;Also with the feature, you can easily get the changes in both client or server-side, for example, grid.GetChanges() will return a collection of all pending changes across tables.&lt;/p&gt;
&lt;p&gt;Hope this helps,&lt;br /&gt;James.&lt;/p&gt;</description></item><item><title>Processing WebGrid field changes on a button click</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Processing-WebGrid-field-changes-on-a-button-click/</link><pubDate>Wed, 16 Sep 2009 11:04:52 GMT</pubDate><dc:creator>darlene.demaio</dc:creator><description>&lt;p&gt;Thanks for the reply.&lt;/p&gt;
&lt;p&gt;But, I still can't make my code work the way I want it to.  I've attached my aspx and aspx.cs files.&lt;/p&gt;
&lt;p&gt;I want to be able to change the originally loaded value of the Quantity grid cell in each row by typing in a new value and then get thosenewly typed values in the OnOKButton_Clicked server-side handler.  I don't want to update the database or anything else in this method.  I just want to get those newly typed quantity values and use them in some logic (not yet coded in the attached code).&lt;/p&gt;
&lt;p&gt;Please let me know what changes I need to make to get this to work.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Darlene&lt;/p&gt;</description></item><item><title>Processing WebGrid field changes on a button click</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Processing-WebGrid-field-changes-on-a-button-click/</link><pubDate>Tue, 15 Sep 2009 23:21:10 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hi Darlene,&lt;/p&gt;&lt;p&gt;You will need handle your changes when click on WebButton. Attached sample has the similar scenario. In fact, I am using dataset and when i clicked the button, I accept the changes and update it. Hope this helps.&lt;/p&gt;
&lt;p&gt;(Note: the sample uses Northwind database&amp;gt;&amp;gt;Customer )&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>Processing WebGrid field changes on a button click</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Processing-WebGrid-field-changes-on-a-button-click/</link><pubDate>Tue, 15 Sep 2009 09:40:15 GMT</pubDate><dc:creator>darlene.demaio</dc:creator><description>&lt;p class="MsoPlainText" style="margin: 0in 0in 0pt"&gt;&lt;span style="font-size: 15px; font-family: consolas"&gt;I want to use WebGrid to allow a user to change some data and then process the changes upon a button click.&lt;span style="mso-spacerun: yes"&gt;  &lt;/span&gt;The button is a WebButton on the same page as the grid, but not in the grid.&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoPlainText" style="margin: 0in 0in 0pt"&gt;&lt;p&gt;&lt;span style="font-size: 15px; font-family: consolas"&gt; &lt;/span&gt;&lt;/p&gt;&lt;/p&gt;
&lt;p class="MsoPlainText" style="margin: 0in 0in 0pt"&gt;&lt;span style="font-size: 15px; font-family: consolas"&gt;I can load the grid successfully with an ISDataSource from a SQL 2005 DB.&lt;span style="mso-spacerun: yes"&gt;  &lt;/span&gt;I have put "e.ReturnValue = False" in the OnRowUpdate event handler.&lt;span style="mso-spacerun: yes"&gt;  &lt;/span&gt;The problem is that when I access the grid cell values in the button click event, the values are the initially loaded values, not the new values typed in the grid by the user.&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoPlainText" style="margin: 0in 0in 0pt"&gt;&lt;p&gt;&lt;span style="font-size: 15px; font-family: consolas"&gt; &lt;/span&gt;&lt;/p&gt;&lt;/p&gt;
&lt;p class="MsoPlainText" style="margin: 0in 0in 0pt"&gt;&lt;span style="font-size: 15px; font-family: consolas"&gt;Can you please send me a code sample that shows me how to do this?&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoPlainText" style="margin: 0in 0in 0pt"&gt;&lt;p&gt;&lt;span style="font-size: 15px; font-family: consolas"&gt; &lt;/span&gt;&lt;/p&gt;&lt;/p&gt;
&lt;p class="MsoPlainText" style="margin: 0in 0in 0pt"&gt;&lt;span style="font-size: 15px; font-family: consolas"&gt;Thank you very much,&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoPlainText" style="margin: 0in 0in 0pt"&gt;&lt;p&gt;&lt;span style="font-size: 15px; font-family: consolas"&gt; &lt;/span&gt;&lt;/p&gt;&lt;/p&gt;
&lt;p class="MsoPlainText" style="margin: 0in 0in 0pt"&gt;&lt;span style="font-size: 15px; font-family: consolas"&gt;Darlene DeMaio&lt;/span&gt;&lt;/p&gt;
</description></item></channel></rss>