﻿<?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 - Column Sort order</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Column-Sort-order/</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>Column Sort order</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Column-Sort-order/</link><pubDate>Wed, 30 Mar 2011 11:54:02 GMT</pubDate><dc:creator>John.Bonin@dot.gov</dc:creator><description>&lt;p&gt;Works like a charm, thank you.&lt;/p&gt;</description></item><item><title>Column Sort order</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Column-Sort-order/</link><pubDate>Wed, 30 Mar 2011 06:40:01 GMT</pubDate><dc:creator>John.Bonin@dot.gov</dc:creator><description>&lt;p&gt;Thank you, I will check out the code.&lt;/p&gt;</description></item><item><title>Column Sort order</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Column-Sort-order/</link><pubDate>Tue, 29 Mar 2011 22:40:23 GMT</pubDate><dc:creator>lili</dc:creator><description>&lt;p&gt;Hi John,&lt;/p&gt;
&lt;p&gt;Here's another workaround to achieve your scenario that I made through the javascript code:&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;&lt;pre&gt;&amp;lt;script language="javascript" type="text/javascript" id="WebGrid1_OnColumnSort"&amp;gt;
		&amp;lt;!--
        var i = 0;
		function WebGrid1_OnColumnSort(controlId, columnObject)
		{
			var WebGrid1 = ISGetObject(controlId);
			if (i == 0)
            {
			    columnObject.SortOrder = "Descending";
			    i = 1;
			}
			else if (i == 1) 
            {
			    columnObject.SortOrder = "Ascending";
			    i = 2;
			}
			else if (i == 2) 
            {
			    columnObject.SortOrder = "None";
			    i = 0;
			}
			return true;
		}
		--&amp;gt;
&amp;lt;/script&amp;gt;&lt;/pre&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Hope it helps.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Lili Khiung&lt;/p&gt;</description></item><item><title>Column Sort order</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Column-Sort-order/</link><pubDate>Tue, 29 Mar 2011 02:38:18 GMT</pubDate><dc:creator>lili</dc:creator><description>&lt;p&gt;Hi John,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I am really sorry but for now, there is no property to change the sorting type order when you click the column header. But other way, you can right click the column header so that you can straight choose the order type that you want.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Lili Khiung&lt;/p&gt;</description></item><item><title>Column Sort order</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Column-Sort-order/</link><pubDate>Mon, 28 Mar 2011 11:56:39 GMT</pubDate><dc:creator>John.Bonin@dot.gov</dc:creator><description>&lt;p&gt;On a Grid I allow sorting, when you click on the column header the first time to column is sorted in Ascending order, 2nd click descending order and 3rd click default order.  Is it possible to change this so that on first click sort is decending and the 2nd click ascending?&lt;/p&gt;</description></item></channel></rss>