<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>ASP.NET Dynamic Data</title><link>http://forums.asp.net/1145.aspx</link><description>Discussions regarding the new scaffolding framework in ASP.NET</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Default sorting with descending order</title><link>http://forums.asp.net/thread/2766435.aspx</link><pubDate>Tue, 25 Nov 2008 09:33:31 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2766435</guid><dc:creator>sjnaughton</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2766435.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1145&amp;PostID=2766435</wfw:commentRss><description>&lt;p&gt;I would say you need to tell the GridView which column to sort on by default I would asume that this will be a custom DD page.&lt;/p&gt;
&lt;p&gt;&lt;span class="kwd"&gt;if&lt;/span&gt; (!IsPostBack)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; GridView1.Sort(&lt;span class="st"&gt;&amp;quot;LastName, FirstName&amp;quot;&lt;/span&gt;, SortDirection.Ascending);&lt;br /&gt;
&lt;p&gt;In the Page_Load&lt;/p&gt;
&lt;p&gt;Hope this helps &lt;img src="http://forums.asp.net/emoticons/emotion-2.gif" alt="Big Smile" /&gt;&lt;/p&gt;</description></item><item><title>Default sorting with descending order</title><link>http://forums.asp.net/thread/2765926.aspx</link><pubDate>Tue, 25 Nov 2008 05:11:16 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2765926</guid><dc:creator>Balyk</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2765926.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1145&amp;PostID=2765926</wfw:commentRss><description>I have some table with Date column. I want to have default sorting on my Date column with descending order that rows with last date wil be on the top.

I have a LINQ to SQL DataSource. I have attempted to use OrderByParameters, but I can&amp;#39;t make descending order on my column.

Which the best way to resolve my problem? May be there is some way in Dynamic Data framework not in DataSource. How can I intercept creating Select command to database?</description></item></channel></rss>