﻿<?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 - How to get original data row value from WebGrid data source ?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-get-original-data-row-value-from-WebGrid-data-source-/</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>How to get original data row value from WebGrid data source ?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-get-original-data-row-value-from-WebGrid-data-source-/</link><pubDate>Mon, 10 May 2010 09:36:30 GMT</pubDate><dc:creator>andi@intersoftpt.com</dc:creator><description>&lt;p /&gt;&lt;p class="MsoNormal" style="margin-top: 7.5pt; margin-right: 0in; margin-bottom: 7.5pt; margin-left: 0in; "&gt;&lt;span style="font-family: 'lucida sans unicode', sans-serif; color: black; font-size: 9pt; "&gt;&lt;span style="font-size: 9pt; "&gt;Hi Gaurav,&lt;o:p /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 7.5pt; margin-right: 0in; margin-bottom: 7.5pt; margin-left: 0in; "&gt;&lt;span style="font-family: 'lucida sans unicode', sans-serif; color: black; font-size: 9pt; "&gt;&lt;span style="font-size: 9pt; "&gt;    
Forgive me if I made mistakes. However, after I confirmed with Yudhi, the work
item #689 is about using a client side event of AcceptAllChanges that does not
work properly. Yet, this work item is made because the server side of
performing batch update is not succeed.&lt;o:p /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 7.5pt; margin-right: 0in; margin-bottom: 7.5pt; margin-left: 0in; "&gt;&lt;span style="font-family: 'lucida sans unicode', sans-serif; color: black; font-size: 9pt; "&gt;&lt;span style="font-size: 9pt; "&gt;     And
now, I believe we do not need to trigger the client side event on AcceptAllChanges
for work around in order to perform server side batch update.&lt;o:p /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 7.5pt; margin-right: 0in; margin-bottom: 7.5pt; margin-left: 0in; "&gt;&lt;span style="font-family: 'lucida sans unicode', sans-serif; color: black; font-size: 9pt; "&gt;&lt;span style="font-size: 9pt; "&gt;     On
the last post, I attached you a simple sample on how to perform that scenario.
Here is the snippet:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin-top: 7.5pt; margin-right: 0in; margin-bottom: 7.5pt; margin-left: 0in; "&gt;&lt;span style="font-family: 'lucida sans unicode', sans-serif; color: black; font-size: 9pt; " /&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="font-size: 9pt; "&gt;    protected void Button3_Click(object sender, EventArgs e)
    {
        WebGrid1.PerformBatchUpdate(true, true);
        WebGrid1.RebindDataSource();
    }&lt;/span&gt;&lt;/pre&gt;
&lt;p /&gt;&lt;p class="MsoNormal" style="margin-top: 7.5pt; margin-right: 0in; margin-bottom: 7.5pt; margin-left: 0in; "&gt;&lt;span style="font-family: 'lucida sans unicode', sans-serif; color: black; font-size: 9pt; "&gt;&lt;span style="font-size: 9pt; "&gt;      I hope it will clear all the ambiguity that occurred. Thank you and have
a nice day.&lt;o:p /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 7.5pt; margin-right: 0in; margin-bottom: 7.5pt; margin-left: 0in; "&gt;&lt;span style="font-family: 'lucida sans unicode', sans-serif; color: black; font-size: 9pt; "&gt;&lt;span style="font-size: 9pt; "&gt;Best Regards,&lt;o:p /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 7.5pt; margin-right: 0in; margin-bottom: 7.5pt; margin-left: 0in; "&gt;&lt;span style="font-family: 'lucida sans unicode', sans-serif; color: black; font-size: 9pt; "&gt;&lt;span style="font-size: 9pt; "&gt;Andi Santoso&lt;/span&gt;&lt;o:p /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p /&gt;</description></item><item><title>How to get original data row value from WebGrid data source ?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-get-original-data-row-value-from-WebGrid-data-source-/</link><pubDate>Fri, 07 May 2010 05:31:00 GMT</pubDate><dc:creator>desaigs81</dc:creator><description>&lt;p&gt;Andi,&lt;/p&gt;
&lt;p&gt;Yudi has already given this night build to us earlider where you team had fixed work item #676&lt;/p&gt;
&lt;p&gt;So, we had another issue with that night build release which i reported back to Yudi and he said it is an issue with the grid and they raised another work item #689 which to my knowledge is not yet fixed.&lt;/p&gt;
&lt;p&gt;NOW CAN YOU TELL ME THAT the build given in the linke above given by you is fix for #689 or that is not yet resolved ????&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item><item><title>How to get original data row value from WebGrid data source ?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-get-original-data-row-value-from-WebGrid-data-source-/</link><pubDate>Fri, 07 May 2010 03:02:04 GMT</pubDate><dc:creator>andi@intersoftpt.com</dc:creator><description>&lt;p /&gt;&lt;p style="margin-top: 7.5pt; margin-right: 0in; margin-bottom: 7.5pt; margin-left: 0in; "&gt;&lt;span style="font-family: 'lucida sans unicode', sans-serif; color: black; font-size: 9pt; "&gt;&lt;span style="font-size: 9pt; "&gt;Hi Gaurav,&lt;o:p /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top: 7.5pt; margin-right: 0in; margin-bottom: 7.5pt; margin-left: 0in; "&gt;&lt;span style="font-family: 'lucida sans unicode', sans-serif; color: black; font-size: 9pt; "&gt;&lt;span style="font-size: 9pt; "&gt;    If I am not mistaken, you were trying to
perform BatchUpdate from server side. I have got a good news regarding this.
Our developer has fixed this issue. You can get the latest build of WebGrid in &lt;/span&gt;&lt;a href="www.intersoftpt.com/tdn/downloads/WebGridNET7_0_7200_403.zip" target="_blank"&gt;&lt;span style="font-size: 9pt; "&gt;here&lt;/span&gt;&lt;/a&gt;&lt;span style="font-size: 9pt; "&gt;. However, this is a nightly build, disclaimer is on and any feedback
regarding this issue is truly appreciated since this build has not been
intensively tested.&lt;o:p /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top: 7.5pt; margin-right: 0in; margin-bottom: 7.5pt; margin-left: 0in; "&gt;&lt;span style="font-family: 'lucida sans unicode', sans-serif; color: black; font-size: 9pt; "&gt;&lt;span style="font-size: 9pt; "&gt;    I also attached you a simple sample on how to
perform BatchUpdate from server side. Hopefully, this can help you. Thank you
and have a nice day.&lt;o:p /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top: 7.5pt; margin-right: 0in; margin-bottom: 7.5pt; margin-left: 0in; "&gt;&lt;span style="font-family: 'lucida sans unicode', sans-serif; color: black; font-size: 9pt; "&gt;&lt;span style="font-size: 9pt; "&gt;Best Regards,&lt;o:p /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top: 7.5pt; margin-right: 0in; margin-bottom: 7.5pt; margin-left: 0in; "&gt;&lt;span style="font-family: 'lucida sans unicode', sans-serif; color: black; font-size: 9pt; "&gt;&lt;span style="font-size: 9pt; "&gt;Andi Santoso&lt;/span&gt;&lt;o:p /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p /&gt;</description></item><item><title>How to get original data row value from WebGrid data source ?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-get-original-data-row-value-from-WebGrid-data-source-/</link><pubDate>Thu, 06 May 2010 02:33:54 GMT</pubDate><dc:creator>desaigs81</dc:creator><description>&lt;p&gt;Yes, the sample application works but is that a limitation that only in UpdateRow event i will be able to get Old row ? Is not there any way where in on the click of some server side button i check for old valules for specified column in list of data rows ?? It seems after UpdateRow event internally data table's acceptChanges event is called ?&lt;/p&gt;
&lt;p&gt;My rqeuirement is to get all old and new value for list of modified rows on clic of a server side button and not on update row event. Of course as a work around i can store these old and new value in some in memory obejct like session on updaterow event but it is not recommanded approach to store too much values in session.&lt;/p&gt;
&lt;p&gt;Any idea ?&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item><item><title>How to get original data row value from WebGrid data source ?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-get-original-data-row-value-from-WebGrid-data-source-/</link><pubDate>Wed, 05 May 2010 23:13:12 GMT</pubDate><dc:creator>andi@intersoftpt.com</dc:creator><description>&lt;p /&gt;&lt;p style="margin-top: 7.5pt; margin-right: 0in; margin-bottom: 7.5pt; margin-left: 0in; "&gt;&lt;span style="font-family: 'lucida sans unicode', sans-serif; color: black; font-size: 9pt; "&gt;&lt;span style="font-size: 9pt; "&gt;Hi Gaurav,&lt;o:p /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top: 7.5pt; margin-right: 0in; margin-bottom: 7.5pt; margin-left: 0in; "&gt;&lt;span style="font-family: 'lucida sans unicode', sans-serif; color: black; font-size: 9pt; "&gt;&lt;span style="font-size: 9pt; "&gt;     Sorry for misinterpret. I have tried your
provided code and I have modified them a little bit. I have tested them and it
worked. It will show me the original value instead of the new value inserted.&lt;o:p /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top: 7.5pt; margin-right: 0in; margin-bottom: 7.5pt; margin-left: 0in; "&gt;&lt;span style="font-family: 'lucida sans unicode', sans-serif; color: black; font-size: 9pt; "&gt;&lt;span style="font-size: 9pt; "&gt;     I have attached you a simple sample. In this
sample, it will give us an alert for the old value after we updated the
"ShipVia" row or the 6th column index on the first row. &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin-top: 7.5pt; margin-right: 0in; margin-bottom: 7.5pt; margin-left: 0in; "&gt;&lt;span style="font-family: 'lucida sans unicode', sans-serif; color: black; font-size: 9pt; "&gt;&lt;span style="font-size: 9pt; "&gt;     I hope it can help. Thank you
and have a nice day.&lt;o:p /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top: 7.5pt; margin-right: 0in; margin-bottom: 7.5pt; margin-left: 0in; "&gt;&lt;span style="font-family: 'lucida sans unicode', sans-serif; color: black; font-size: 9pt; "&gt;&lt;span style="font-size: 9pt; "&gt;Best Regards,&lt;o:p /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top: 7.5pt; margin-right: 0in; margin-bottom: 7.5pt; margin-left: 0in; "&gt;&lt;span style="font-family: 'lucida sans unicode', sans-serif; color: black; font-size: 9pt; "&gt;&lt;span style="font-size: 9pt; "&gt;Andi Santoso&lt;/span&gt;&lt;o:p /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p /&gt;</description></item><item><title>How to get original data row value from WebGrid data source ?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-get-original-data-row-value-from-WebGrid-data-source-/</link><pubDate>Wed, 05 May 2010 01:50:42 GMT</pubDate><dc:creator>desaigs81</dc:creator><description>&lt;p&gt;God..you are again and again giving me same solution. &lt;/p&gt;
&lt;p&gt;UNTILL THE INTERSOFT TEAM Resolves the issue with batch update I CAN NOT USE BATCH UPDATE feature in my grid. I think the work item was &lt;strong&gt;#689.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;BatchUpdate is not enabled right now in my grid. Now can you please tell me why the work around i am using doese not work or suggest me some other work around.&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt; &lt;/p&gt;</description></item><item><title>How to get original data row value from WebGrid data source ?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-get-original-data-row-value-from-WebGrid-data-source-/</link><pubDate>Wed, 05 May 2010 00:31:13 GMT</pubDate><dc:creator>andi@intersoftpt.com</dc:creator><description>&lt;p /&gt;&lt;p style="margin-top: 10px; margin-bottom: 10px; "&gt;&lt;span style="font-size: 9pt; "&gt;Hi Gaurav,&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin-top: 10px; margin-bottom: 10px; "&gt;&lt;span style="font-size: 9pt; "&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; We cannot use that approach to retrieve the old and new value of a BatchUpdate WebGrid. What you might want to do is, as like my colleague mentioned about retrieve changes in WebGrid. Here is the snippet to do so:&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin-top: 10px; margin-bottom: 10px; " /&gt;&lt;pre style="background-color: rgb(255, 252, 225); font-family: 'courier new', tahoma; "&gt;&lt;span style="font-size: 9pt; "&gt;protected void WebGrid1_BatchUpdate(object sender, ISNet.WebUI.WebGrid.BatchUpdateEventArgs e)
    {
        string newValue = WebGrid1.GetChanges()[0].Data[0].NewValue.ToString();
        string oldValue = WebGrid1.GetChanges()[0].Data[0].OldValue.ToString();
    }&lt;/span&gt;&lt;/pre&gt;
&lt;p style="margin-top: 10px; margin-bottom: 10px; "&gt;&lt;span style="font-size: 9pt; "&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; I hope it helps you . Thank you and have a nice day.&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin-top: 10px; margin-bottom: 10px; "&gt;&lt;span style="font-size: 9pt; "&gt;Best Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin-top: 10px; margin-bottom: 10px; "&gt;&lt;span style="font-size: 9pt; "&gt;Andi Santoso&lt;/span&gt;&lt;/p&gt;
&lt;p /&gt;
&lt;p /&gt;</description></item><item><title>How to get original data row value from WebGrid data source ?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-get-original-data-row-value-from-WebGrid-data-source-/</link><pubDate>Tue, 04 May 2010 01:17:16 GMT</pubDate><dc:creator>desaigs81</dc:creator><description>&lt;p&gt;Dear Yudi,&lt;/p&gt;
&lt;p&gt;If you read through my post again, i have mentioned that your development team is working on the BatchUpdateIssue which Nikhil/Mukul my managers here have posted on which your team is hopefully working right now (the issue of AcceptAllChanges not workign in the night build ) . So untill we get a fix/night build for batchUpdte Can you please tell me why above code snippet is not working ? &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item><item><title>How to get original data row value from WebGrid data source ?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-get-original-data-row-value-from-WebGrid-data-source-/</link><pubDate>Mon, 03 May 2010 12:10:27 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;WebGrid has OnBatchUpdate server side event that always be invoked when batch update feature is enabled. This event is required to be handled for traditional and custom object binding. You can use GetChanges method at WebGrid or WebGridTable object to get the desired changes and the original value.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;For example, you can get the new text and value as well as the old one in WebGrid1.GetChanges()[0].Data[0].&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;Following link, &lt;a href="http://support.intersoftpt.com/Docs/WebGrid/7.0.7200/Server-side Programmability.html"&gt;&lt;span style="color: #0000ff"&gt;http://support.intersoftpt.com/Docs/WebGrid/7.0.7200/Server-side Programmability.html&lt;/span&gt;&lt;/a&gt;, showing the server-side programmability that related to WebGrid BatchUpdate feature.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>How to get original data row value from WebGrid data source ?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-get-original-data-row-value-from-WebGrid-data-source-/</link><pubDate>Mon, 03 May 2010 05:16:06 GMT</pubDate><dc:creator>desaigs81</dc:creator><description>&lt;p&gt;We are using WebGrid 7.0 in SharePoint Web part , we have a &lt;strong&gt;self refrencing editable grid &lt;/strong&gt;and rendering the web grid programatically.&lt;/p&gt;
&lt;p&gt;We have certain BatchUpdate issue on which WebGrid development team from Intersoft is working hence i am trying to figur out old value and new value of perticular cell by means of inspecting DataTable which is assigned to WebGrid as data source.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I am using following code to check what was the old cell value of the web grid before the grid cell was modified.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;&lt;pre&gt;DataTable dtMyTasks = interSoftWebUIGrid.DataSource as DataTable;&lt;/pre&gt;&lt;pre&gt;DataRow[] dataRowArray = dataTableInstance.Select(null,null,DataViewRowState.OriginalRows); 
DataRow originalDataRow = dataRowArray[rowIndex][columnIndex, DataRowVersion.Original]  
&lt;/pre&gt;
&lt;p&gt;But in above code originalDataRow surpricingly refers to the latest cell value instead of original cell value .&lt;/p&gt;
&lt;p&gt;Any idea ?&lt;/p&gt;</description></item></channel></rss>