﻿<?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 - Default sort column and insert as first row</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Default-sort-column-and-insert-as-first-row/</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>Default sort column and insert as first row</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Default-sort-column-and-insert-as-first-row/</link><pubDate>Tue, 13 Nov 2012 20:42:49 GMT</pubDate><dc:creator>bernard</dc:creator><description>&lt;p&gt;Hi Daniele,&lt;/p&gt;&lt;p&gt;Glad that you have solved your problem. If you have any further question, please don't hesitate to ask us.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Bernard&lt;/p&gt;</description></item><item><title>Default sort column and insert as first row</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Default-sort-column-and-insert-as-first-row/</link><pubDate>Tue, 13 Nov 2012 10:42:26 GMT</pubDate><dc:creator>vangeloni</dc:creator><description>&lt;p&gt;Hi Bernard,&lt;/p&gt;
&lt;p&gt;with the sort I was able to have the behavior I need.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Daniele&lt;/p&gt;</description></item><item><title>Default sort column and insert as first row</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Default-sort-column-and-insert-as-first-row/</link><pubDate>Tue, 13 Nov 2012 04:10:21 GMT</pubDate><dc:creator>bernard</dc:creator><description>&lt;p&gt;Hi Vince,&lt;/p&gt;&lt;p&gt;It is possible for you to specify sort method for column inside WebGrid. Just add this code inside RootTable tag then WebGrid will be sorted when initialize or on row change.&lt;/p&gt;
&lt;p /&gt;&lt;pre&gt;&amp;lt;RootTable&amp;gt;
...
	&amp;lt;SortedColumns&amp;gt;
		&amp;lt;ISWebGrid:WebGridGroup ColumnMember="CustomerID" SortOrder="Descending" /&amp;gt;
	&amp;lt;/SortedColumns&amp;gt;
&amp;lt;/RootTable&amp;gt;&lt;/pre&gt;
&lt;p&gt;But I didn't think the 2nd scenario could be achieve for Databound WebGrid. As far as I know, after inserting data, WebGrid will take the data from database and show it as the order in the database. Actually, database will put the new row in the last data. So the new row will be appear in the last row of WebGrid. Hope this helps.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Bernard&lt;/p&gt;
&lt;p /&gt;</description></item><item><title>Default sort column and insert as first row</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Default-sort-column-and-insert-as-first-row/</link><pubDate>Tue, 13 Nov 2012 03:44:01 GMT</pubDate><dc:creator>vangeloni</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;is it possible set a default ordering in the web grid, like to specify a column and descending order for that column?&lt;/li&gt;&lt;li&gt;is it possible to insert a new row as first row of the grid instead of as last row of the grid?&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;Thanks in advance,&lt;/p&gt;
&lt;p&gt;Vince&lt;/p&gt;</description></item></channel></rss>