﻿<?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 - Swap rows on client side only</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Swap-rows-on-client-side-only/</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>Swap rows on client side only</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Swap-rows-on-client-side-only/</link><pubDate>Mon, 17 May 2010 04:37:07 GMT</pubDate><dc:creator>Glayaar</dc:creator><description>&lt;p&gt;Unfortunately, swapping row has not been supported by WebGrid. I also could not find any workaround in order to swap row in the client side.&lt;/p&gt;&lt;p&gt;The method you proposed will not work because the row update function will only update the column value, not its attribute.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Swap rows on client side only</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Swap-rows-on-client-side-only/</link><pubDate>Fri, 14 May 2010 13:09:26 GMT</pubDate><dc:creator>ashutoshbhardwaj1980</dc:creator><description>&lt;p&gt;Hi, &lt;/p&gt;
&lt;p&gt;We are using IS Webgrid  (WebGrid.NET Enterprise 6.0) in one of our projects. We have a requirement in which the user can move the data in the grid ( rows of the grid) up and down based on a button click. &lt;/p&gt;
&lt;p&gt;This is what I am doing currently, &lt;/p&gt;
&lt;p&gt;Get the current row &lt;/p&gt;
&lt;p&gt;Get the previous row&lt;/p&gt;
&lt;p&gt;Swap the row using row.Position property &lt;/p&gt;
&lt;p&gt;current row.update()&lt;/p&gt;
&lt;p&gt;previous row.update()&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Unfortunately, I dont see any change to the data in the grid. Is there a function which just do a client side refresh of the data? Does anyone know of a better approach to switch html rows in the grid without doing any postback?&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>